mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 06:25:50 +01:00
fix null datetime error
This commit is contained in:
@@ -241,7 +241,7 @@ var async = require('async'),
|
||||
}
|
||||
|
||||
var datetimes = notificationData.map(function(notification) {
|
||||
return notification && notification.datetime;
|
||||
return (notification && notification.datetime) || Date.now();
|
||||
});
|
||||
|
||||
async.parallel([
|
||||
|
||||
Reference in New Issue
Block a user