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