fixes in import & export related to the protected session

This commit is contained in:
zadam
2019-09-01 22:09:55 +02:00
parent 8dadc7e518
commit 15a2fe2570
4 changed files with 20 additions and 11 deletions

View File

@@ -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);
}