mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-09 21:25:45 +08:00
feat: refresh index if version changed (#14150)
This commit is contained in:
@@ -218,4 +218,10 @@ export class IndexedDBIndexerStorage extends IndexerStorageBase {
|
||||
this.tableUpdate$.next(table);
|
||||
this.channel.postMessage({ type: 'indexer-updated', table });
|
||||
}
|
||||
|
||||
// Get the current indexer version
|
||||
// increase this number to re-index all docs
|
||||
async indexVersion(): Promise<number> {
|
||||
return Promise.resolve(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user