Skip to content

Commit d353d32

Browse files
committed
fix: move dropTables into check as well
1 parent eaecbf6 commit d353d32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/src/store/SqliteClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ export class SqliteClient {
201201

202202
static resetDB = async () => {
203203
this.logger?.('info', `resetDB`);
204-
await SqliteClient.dropTables();
205204
if (this.db) {
205+
await SqliteClient.dropTables();
206206
SqliteClient.closeDB();
207207
}
208208
await SqliteClient.initializeDatabase();

0 commit comments

Comments
 (0)