mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-04 14:50:47 +01:00
change where progress.incr is called for flags_refactor upgrade script
This commit is contained in:
@@ -26,6 +26,8 @@ module.exports = {
|
||||
});
|
||||
|
||||
async.each(posts, function (post, next) {
|
||||
progress.incr();
|
||||
|
||||
async.parallel({
|
||||
uids: async.apply(db.getSortedSetRangeWithScores, 'pid:' + post.pid + ':flag:uids', 0, -1),
|
||||
reasons: async.apply(db.getSortedSetRange, 'pid:' + post.pid + ':flag:uid:reason', 0, -1),
|
||||
@@ -81,8 +83,6 @@ module.exports = {
|
||||
} else {
|
||||
next(err);
|
||||
}
|
||||
|
||||
progress.incr();
|
||||
});
|
||||
});
|
||||
}, next);
|
||||
|
||||
Reference in New Issue
Block a user