Add missing async/await (#269)

This commit is contained in:
YuNing Chen
2023-08-03 18:53:59 +08:00
committed by GitHub
parent 0263018f65
commit a077b427eb
3 changed files with 6 additions and 6 deletions

View File

@@ -43,7 +43,7 @@ export async function refreshIndex(): Promise<void> {
const paths = [...notesToReindex].map(n => n.path)
if (paths.length) {
searchEngine.removeFromPaths(paths)
searchEngine.addFromPaths(paths)
await searchEngine.addFromPaths(paths)
notesToReindex.clear()
// console.log(`Omnisearch - Reindexed ${paths.length} file(s)`)
}