mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
fix: optimize DB pull (#2589)
This commit is contained in:
@@ -178,7 +178,7 @@ const createSQLiteProvider = (
|
||||
async function syncBlobIntoSQLite(bs: BlobManager) {
|
||||
const persistedKeys = await apis.db.getBlobKeys(blockSuiteWorkspace.id);
|
||||
|
||||
const allKeys = await bs.list();
|
||||
const allKeys = await bs.list().catch(() => []);
|
||||
const keysToPersist = allKeys.filter(k => !persistedKeys.includes(k));
|
||||
|
||||
logger.info('persisting blobs', keysToPersist, 'to sqlite');
|
||||
|
||||
Reference in New Issue
Block a user