Explorar o código

chore(dev-server): Fix issue populating with sqlite

Michael Bromley %!s(int64=6) %!d(string=hai) anos
pai
achega
d6d33eff8e

+ 1 - 0
packages/dev-server/dev-config.ts

@@ -90,6 +90,7 @@ function getDbConfig(): ConnectionOptions {
         case 'sqlite':
             console.log('Using sqlite connection');
             return {
+                synchronize: true,
                 type: 'sqlite',
                 database: path.join(__dirname, 'vendure.sqlite'),
             };

+ 1 - 1
packages/dev-server/populate-dev-server.ts

@@ -31,7 +31,7 @@ if (require.main === module) {
         },
         customFields: {},
     };
-    clearAllTables(populateConfig, true)
+    clearAllTables(populateConfig as any, true)
         .then(() =>
             populate(
                 () => bootstrap(populateConfig),