diff --git a/src/upgrade.js b/src/upgrade.js index 9221d29cd0..12e7e610ab 100644 --- a/src/upgrade.js +++ b/src/upgrade.js @@ -197,17 +197,16 @@ Upgrade.upgrade = function(callback) { db.setAdd('plugins:active', 'nodebb-widget-essentials', function(err) { winston.info('[2014/2/20] Activating NodeBB Essential Widgets'); Plugins.reload(function() { - next(err); + if (err) { + next(err); + } else { + Upgrade.update(thisSchemaDate, next); + } }); }); } else { winston.info('[2014/2/20] Activating NodeBB Essential Widgets - skipped'); - - if (err) { - next(err); - } else { - Upgrade.update(thisSchemaDate, next); - } + next(); } }, function(next) {