mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-23 04:51:49 +08:00
fix: potential flaky issues (#2733)
This commit is contained in:
@@ -85,10 +85,6 @@ function getWorkspaceDB$(id: string) {
|
||||
try {
|
||||
await db.destroy();
|
||||
db$Map.delete(id);
|
||||
logger.info(
|
||||
'[ensureSQLiteDB] db connection destroyed',
|
||||
db.workspaceId
|
||||
);
|
||||
return db;
|
||||
} catch (err) {
|
||||
logger.error('[ensureSQLiteDB] destroy db failed', err);
|
||||
|
||||
Reference in New Issue
Block a user