diff --git a/src/services/lowdbStorage.service.ts b/src/services/lowdbStorage.service.ts index 50c01e66b3..e9621a0fcf 100644 --- a/src/services/lowdbStorage.service.ts +++ b/src/services/lowdbStorage.service.ts @@ -28,7 +28,7 @@ export class LowdbStorageService implements StorageService { this.db = lowdb(adapter); } catch (e) { if (e instanceof SyntaxError) { - fs.writeFileSync(this.dataFilePath, ''); + adapter.write({}); this.db = lowdb(adapter); } else { throw e;