mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
note cache refactoring WIP
This commit is contained in:
@@ -18,7 +18,7 @@ async function getAutocomplete(req) {
|
||||
results = await getRecentNotes(activeNoteId);
|
||||
}
|
||||
else {
|
||||
results = await noteCacheService.findNotesWithFulltext(query);
|
||||
results = await noteCacheService.findNotesForAutocomplete(query);
|
||||
}
|
||||
|
||||
const msTaken = Date.now() - timestampStarted;
|
||||
@@ -57,10 +57,9 @@ async function getRecentNotes(activeNoteId) {
|
||||
const title = noteCacheService.getNoteTitleForPath(rn.notePath.split('/'));
|
||||
|
||||
return {
|
||||
path: rn.notePath,
|
||||
pathTitle: title,
|
||||
highlightedTitle: title,
|
||||
noteTitle: noteCacheService.getNoteTitleFromPath(rn.notePath)
|
||||
notePath: rn.notePath,
|
||||
notePathTitle: title,
|
||||
highlightedNotePathTitle: utils.escapeHtml(title)
|
||||
};
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user