workaround for problem arising from switch to Date.UTC()

This commit is contained in:
Julian Lam
2014-03-06 19:48:38 -05:00
parent 5880590425
commit 552a63367d

View File

@@ -223,8 +223,11 @@ Upgrade.upgrade = function(callback) {
}
db.getListRange('categories:cid', 0, -1, function(err, cids) {
// Naive type-checking, becaue DBAL does not have .type() support
if(err) {
return next(err);
// Most likely upgraded already. Skip.
winston.info('[2014/2/22] Added categories to sorted set - skipped');
return Upgrade.update(thisSchemaDate, next);
}
if(!Array.isArray(cids)) {