Selaa lähdekoodia

fix(server): Fix couple of minor bugs, bump alpha version

Michael Bromley 6 vuotta sitten
vanhempi
sitoutus
72e991c934

+ 1 - 1
server/package.json

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

+ 1 - 1
server/src/api/resolvers/shop/shop-products.resolver.ts

@@ -6,9 +6,9 @@ import {
     ProductQueryArgs,
     SearchResponse,
 } from '../../../../../shared/generated-shop-types';
+import { ProductsQueryArgs } from '../../../../../shared/generated-shop-types';
 import { Omit } from '../../../../../shared/omit';
 import { PaginatedList } from '../../../../../shared/shared-types';
-import { ProductsQueryArgs } from '../../../../dist/shared/generated-shop-types';
 import { InternalServerError } from '../../../common/error/errors';
 import { Translated } from '../../../common/types/locale-types';
 import { Collection } from '../../../entity/collection/collection.entity';

+ 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() description: string;
+    @Column({ nullable: true }) description: string;
 
     @ManyToOne(type => Collection, base => base.translations)
     base: Collection;