aboutsummaryrefslogtreecommitdiffstats
path: root/models/Note.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/Note.js')
-rw-r--r--models/Note.js2
1 files changed, 1 insertions, 1 deletions
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()