mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: handle missing timestamps
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user