mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-17 06:16:59 +08:00
feat: refresh index if version changed (#14150)
This commit is contained in:
@@ -184,4 +184,5 @@ export interface NbStorePlugin {
|
||||
query: string;
|
||||
}) => Promise<Array<{ start: number; end: number }>>;
|
||||
ftsFlushIndex: (options: { id: string }) => Promise<void>;
|
||||
ftsIndexVersion: () => Promise<number>;
|
||||
}
|
||||
|
||||
@@ -406,4 +406,7 @@ export const NbStoreNativeDBApis: NativeDBApis = {
|
||||
id,
|
||||
});
|
||||
},
|
||||
ftsIndexVersion: function (): Promise<number> {
|
||||
return NbStore.ftsIndexVersion();
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user