change where progress.incr is called for flags_refactor upgrade script

v1.18.x
Julian Lam 8 years ago
parent 33e8ecc1f4
commit 6095b7e6db

@ -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);

Loading…
Cancel
Save