mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
handling missing notifications in update script
This commit is contained in:
@@ -54,7 +54,9 @@ Upgrade.upgrade = function() {
|
||||
RDB.zrange(key, 0, -1, function(err, nids) {
|
||||
async.each(nids, function(nid, next) {
|
||||
notifications.get(nid, null, function(notif_data) {
|
||||
RDB.zadd(key, notif_data.datetime, nid, next);
|
||||
if (notif_data) {
|
||||
RDB.zadd(key, notif_data.datetime, nid, next);
|
||||
}
|
||||
});
|
||||
}, next);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user