From d9c7238ce32f41e5a4404b65249feb06ab7cd762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20M=C3=BCller?= Date: Mon, 19 Oct 2015 08:02:45 +0200 Subject: [PATCH] bugfi: update timestamp at update --- src/storage.js | 1 + 1 file changed, 1 insertion(+) 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