1
0
Эх сурвалжийг харах

fix(server): Correctly define default customFields

Michael Bromley 7 жил өмнө
parent
commit
8e4e17a356

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
schema.json


+ 1 - 0
server/dev-config.ts

@@ -22,6 +22,7 @@ export const devConfig: VendureConfig = {
     },
     customFields: {
         Facet: [{ name: 'searchable', type: 'boolean' }],
+        FacetValue: [{ name: 'link', type: 'string' }, { name: 'available', type: 'boolean' }],
         Product: [
             { name: 'infoUrl', type: 'string' },
             { name: 'downloadable', type: 'boolean' },

+ 3 - 1
server/src/config/vendure-config.ts

@@ -64,12 +64,14 @@ const defaultConfig: ReadOnlyRequired<VendureConfig> = {
     customFields: {
         Address: [],
         Customer: [],
+        Facet: [],
+        FacetValue: [],
         Product: [],
         ProductOption: [],
         ProductOptionGroup: [],
         ProductVariant: [],
         User: [],
-    },
+    } as ReadOnlyRequired<CustomFields>,
 };
 
 let activeConfig = defaultConfig;

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно