mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-12 00:45:47 +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) {
|
var datetimes = notificationData.map(function(notification) {
|
||||||
return notification && notification.datetime;
|
return (notification && notification.datetime) || Date.now();
|
||||||
});
|
});
|
||||||
|
|
||||||
async.parallel([
|
async.parallel([
|
||||||
|
|||||||
Reference in New Issue
Block a user