Просмотр исходного кода

fix(server): Populate Collection description

Michael Bromley 6 лет назад
Родитель
Сommit
55f254de4d

+ 1 - 1
server/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@vendure/core",
-  "version": "0.1.0-alpha.12",
+  "version": "0.1.0-alpha.13",
   "description": "A modern, headless ecommerce framework",
   "repository": {
     "type": "git",

+ 1 - 0
server/src/data-import/providers/populator/populator.ts

@@ -82,6 +82,7 @@ export class Populator {
                     {
                         languageCode: ctx.languageCode,
                         name: collectionDef.name,
+                        description: '',
                     },
                 ],
                 parentId,

+ 1 - 1
server/src/entity/collection/collection-translation.entity.ts

@@ -18,7 +18,7 @@ export class CollectionTranslation extends VendureEntity implements Translation<
 
     @Column() name: string;
 
-    @Column({ nullable: true }) description: string;
+    @Column() description: string;
 
     @ManyToOne(type => Collection, base => base.translations)
     base: Collection;