aboutsummaryrefslogtreecommitdiffstats
path: root/models/Note.js
diff options
context:
space:
mode:
authorGravatar piotrruss <mail@pruss.it> 2021-08-21 00:24:01 +0200
committerGravatar piotrruss <mail@pruss.it> 2021-08-21 00:24:01 +0200
commita9d3686ccc496044cfdee013ccfbece955793052 (patch)
tree52b7772720ff89b1b6f20070a771776f0b3e9367 /models/Note.js
parent9f3c030a33edcf57eb832c500253044d107f6e25 (diff)
downloadmy_apps-a9d3686ccc496044cfdee013ccfbece955793052.tar.gz
my_apps-a9d3686ccc496044cfdee013ccfbece955793052.tar.bz2
my_apps-a9d3686ccc496044cfdee013ccfbece955793052.zip
icon focus, notes update timestamp, loading note
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()