From 2eec1afc46b0bee6b8a49c3b6921fa0426a5f71c Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 12 Oct 2016 17:46:45 +0300 Subject: [PATCH] fix upgrade script so it only runs once --- src/upgrade.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/upgrade.js b/src/upgrade.js index 791aefacae..f8177a90d0 100644 --- a/src/upgrade.js +++ b/src/upgrade.js @@ -893,7 +893,7 @@ Upgrade.upgrade = function(callback) { thisSchemaDate = Date.UTC(2016, 9, 8); - if (schemaDate < thisSchemaDate || 1) { + if (schemaDate < thisSchemaDate) { updatesMade = true; winston.info('[2016/10/8] favourite -> bookmark refactor'); async.series([upgradePosts, upgradeUsers], function(err) {