From b25fbd1e2e134b8a6f99a030cda597532901667e Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Sun, 16 Apr 2017 13:39:09 -0400 Subject: [PATCH] fix broken upgrade script --- src/upgrades/1.3.0/favourites_to_bookmarks.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/upgrades/1.3.0/favourites_to_bookmarks.js b/src/upgrades/1.3.0/favourites_to_bookmarks.js index bbdc09ec4c..065f02c94a 100644 --- a/src/upgrades/1.3.0/favourites_to_bookmarks.js +++ b/src/upgrades/1.3.0/favourites_to_bookmarks.js @@ -10,9 +10,10 @@ module.exports = { name: 'Favourites to Bookmarks', timestamp: Date.UTC(2016, 9, 8), method: function (callback) { + var progress = this.progress; + function upgradePosts(next) { var batch = require('../../batch'); - var progress = this.progress; batch.processSortedSet('posts:pid', function (ids, next) { async.each(ids, function (id, next) {