v1.18.x
psychobunny 8 years ago
parent 7bdbe7d9db
commit 06eabbc507

@ -488,7 +488,6 @@ Upgrade.upgrade = function (callback) {
winston.verbose(schemaName);
require('./batch').processSortedSet('posts:pid', function (pids, next) {
async.each(pids, function (pid, next) {
async.each(pids, function (pid, next) {
db.getObjectFields('post:' + pid, ['upvotes', 'downvotes'], function (err, postData) {
if (err || !postData) {
@ -499,7 +498,6 @@ Upgrade.upgrade = function (callback) {
db.sortedSetAdd('posts:votes', votes, pid, next);
});
}, next);
}, next);
}, {}, function (err) {
if (err) {
return next(err);

Loading…
Cancel
Save