fix: handle missing timestamps

v1.18.x
Barış Soner Uşaklı 6 years ago
parent b70e03a7b0
commit 172e688805

@ -25,6 +25,7 @@ module.exports = {
function (next) {
try {
noteData = JSON.parse(note);
noteData.timestamp = noteData.timestamp || Date.now();
setImmediate(next);
} catch (err) {
next(err);

Loading…
Cancel
Save