Node.js based forum software built for the modern web
workaround for problem arising from switch to Date.UTC()
Julian Lam552a63367d8a
diff --git a/src/upgrade.js b/src/upgrade.jsindex 12e7e610ab..9421180bf0 100644--- a/src/upgrade.js+++ b/src/upgrade.js@@ -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() supportif(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)) {