start of note cache expression implementation

This commit is contained in:
zadam
2020-05-15 11:04:55 +02:00
parent 5f1f65a3c2
commit f07025f741
2 changed files with 221 additions and 33 deletions

View File

@@ -18,7 +18,7 @@ async function getAutocomplete(req) {
results = await getRecentNotes(activeNoteId);
}
else {
results = await noteCacheService.findNotes(query);
results = await noteCacheService.findNotesWithFulltext(query);
}
const msTaken = Date.now() - timestampStarted;
@@ -67,4 +67,4 @@ async function getRecentNotes(activeNoteId) {
module.exports = {
getAutocomplete
};
};