mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 07:45:51 +01:00
fixes in import & export related to the protected session
This commit is contained in:
@@ -12,12 +12,8 @@ async function getSimilarNotes(req) {
|
||||
return [404, `Note ${noteId} not found.`];
|
||||
}
|
||||
|
||||
const start = new Date();
|
||||
|
||||
const results = await noteCacheService.findSimilarNotes(note.title);
|
||||
|
||||
console.log("Similar note took: " + (Date.now() - start.getTime()) + "ms");
|
||||
|
||||
return results
|
||||
.filter(note => note.noteId !== noteId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user