diff --git a/src/storage.js b/src/storage.js index a6cde6e..cd45f6a 100644 --- a/src/storage.js +++ b/src/storage.js @@ -54,5 +54,6 @@ module.exports.updateNote = (id, password, text) => Note.findById(id).then(note reject({ message: "Password is wrong" }); }); note.text = text; + note.edited = new Date(); return note.save(); }); \ No newline at end of file