bugfi: update timestamp at update

This commit is contained in:
Christian Müller
2015-10-19 08:02:45 +02:00
parent 800ff44e76
commit d9c7238ce3
+1
View File
@@ -54,5 +54,6 @@ module.exports.updateNote = (id, password, text) => Note.findById(id).then(note
reject({ message: "Password is wrong" }); reject({ message: "Password is wrong" });
}); });
note.text = text; note.text = text;
note.edited = new Date();
return note.save(); return note.save();
}); });