From 0a8c93435b79300d9411b11eb4e81b7d24c2728b Mon Sep 17 00:00:00 2001 From: Maycon Mello Date: Mon, 7 Aug 2023 14:14:27 -0300 Subject: [PATCH] fixing issues with webview --- packages/data-store/src/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/data-store/src/helpers.ts b/packages/data-store/src/helpers.ts index 82ed6f20..2b473880 100644 --- a/packages/data-store/src/helpers.ts +++ b/packages/data-store/src/helpers.ts @@ -20,7 +20,7 @@ export async function initializeTypeORM(options: DataStoreConfigs) { type: (options.dbType as any) || 'sqlite', database: options.databasePath, entities: [WalletEntity, NetworkEntity, DocumentEntity, DocumentTypeEntity], - synchronize: false, + synchronize: process.env.NODE_ENV === 'test', dropSchema: options.dropSchema, driver: options.driver, sqlJsConfig: options.sqlJsConfig,