mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-14 13:25:12 +00:00
feat(y-indexeddb): remove id (#2810)
This commit is contained in:
@@ -128,7 +128,7 @@ export async function tryMigrate(
|
||||
}
|
||||
|
||||
export async function downloadBinary(
|
||||
id: string,
|
||||
guid: string,
|
||||
dbName = DEFAULT_DB_NAME
|
||||
): Promise<UpdateMessage['update'] | false> {
|
||||
const dbPromise = openDB<BlockSuiteBinaryDB>(dbName, dbVersion, {
|
||||
@@ -136,7 +136,7 @@ export async function downloadBinary(
|
||||
});
|
||||
const db = await dbPromise;
|
||||
const t = db.transaction('workspace', 'readonly').objectStore('workspace');
|
||||
const doc = await t.get(id);
|
||||
const doc = await t.get(guid);
|
||||
if (!doc) {
|
||||
return false;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user