mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-11-29 00:39:27 +03:00
1 parent
af205cde7c
commit
a21067db17
1 file changed
+2
-1
@@ -23,8 +23,9 @@ export abstract class BaseSQLiteAdapter {
|
||||
async destroy() {
|
||||
const { db } = this;
|
||||
this.db = null;
|
||||
await db?.close();
|
||||
// log after close will sometimes crash the app when quitting
|
||||
logger.info(`[SQLiteAdapter:${this.role}]`, 'destroyed:', this.path);
|
||||
await db?.close();
|
||||
}
|
||||
|
||||
async addBlob(key: string, data: Uint8Array) {
|
||||
|
||||
Reference in new issue
Block a user