Browse Source

bugfi: update timestamp at update

master
Christian Müller 10 years ago
parent
commit
d9c7238ce3
  1. 1
      src/storage.js

1
src/storage.js

@ -54,5 +54,6 @@ module.exports.updateNote = (id, password, text) => Note.findById(id).then(note @@ -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();
});
Loading…
Cancel
Save