mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 07:55:46 +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) {
|
RDB.zrange(key, 0, -1, function(err, nids) {
|
||||||
async.each(nids, function(nid, next) {
|
async.each(nids, function(nid, next) {
|
||||||
notifications.get(nid, null, function(notif_data) {
|
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);
|
}, next);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user