mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
syncification
This commit is contained in:
@@ -191,7 +191,7 @@ function setImmediatePromise() {
|
||||
});
|
||||
}
|
||||
|
||||
async function findSimilarNotes(noteId) {
|
||||
function findSimilarNotes(noteId) {
|
||||
const results = [];
|
||||
let i = 0;
|
||||
|
||||
@@ -211,7 +211,7 @@ async function findSimilarNotes(noteId) {
|
||||
i++;
|
||||
|
||||
if (i % 200 === 0) {
|
||||
await setImmediatePromise();
|
||||
setImmediatePromise();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user