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

fix(race-condition): Fix race condition on DB among worker and server

Lorenzo Simone 6 жил өмнө
parent
commit
321deb2ffe

+ 4 - 0
packages/dev-server/index-worker.ts

@@ -2,6 +2,10 @@ import { bootstrapWorker } from '@vendure/core';
 
 import { devConfig } from './dev-config';
 
+// https://github.com/vendure-ecommerce/vendure/issues/152
+// fix race condition when modifying DB
+devConfig.dbConnectionOptions = { ...devConfig.dbConnectionOptions, synchronize: false };
+
 bootstrapWorker(devConfig).catch(err => {
     // tslint:disable-next-line
     console.log(err);