lrf 11 ماه پیش
والد
کامیت
4e40c008a2
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/entity/platform/news.entity.ts

+ 1 - 1
src/entity/platform/news.entity.ts

@@ -5,7 +5,7 @@ import { BaseModel } from '../../frame/BaseModel';
 export class News extends BaseModel {
 export class News extends BaseModel {
   @Column({ type: 'character varying', nullable: true, comment: '标题' })
   @Column({ type: 'character varying', nullable: true, comment: '标题' })
   title: string;
   title: string;
-  @Column({ type: 'jsonb', nullable: true, comment: '封面' })
+  @Column({ type: 'jsonb', default: [], nullable: true, comment: '封面' })
   logo: Array<any>;
   logo: Array<any>;
   @Column({ type: 'character varying', nullable: true, comment: '发布人' })
   @Column({ type: 'character varying', nullable: true, comment: '发布人' })
   person: string;
   person: string;