From a9d3686ccc496044cfdee013ccfbece955793052 Mon Sep 17 00:00:00 2001 From: piotrruss Date: Sat, 21 Aug 2021 00:24:01 +0200 Subject: icon focus, notes update timestamp, loading note --- models/Note.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/Note.js') diff --git a/models/Note.js b/models/Note.js index 3f94e62..4e1956e 100644 --- a/models/Note.js +++ b/models/Note.js @@ -26,7 +26,7 @@ noteSchema.pre('save', async function(next){ const note = this; if (note.isModified('content')) { - note.content = await encrypt(note.content) + note.content = encrypt(note.content) } next() -- cgit v1.2.3