mirror of
https://github.com/zadam/trilium.git
synced 2025-11-11 07:45:51 +01:00
note cache refactoring
This commit is contained in:
@@ -12,7 +12,7 @@ async function getSimilarNotes(req) {
|
||||
return [404, `Note ${noteId} not found.`];
|
||||
}
|
||||
|
||||
const results = await noteCacheService.findSimilarNotes(note.title);
|
||||
const results = await noteCacheService.findSimilarNotes(noteId);
|
||||
|
||||
return results
|
||||
.filter(note => note.noteId !== noteId);
|
||||
@@ -20,4 +20,4 @@ async function getSimilarNotes(req) {
|
||||
|
||||
module.exports = {
|
||||
getSimilarNotes
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user