Skip to content

Node.js based forum software built for the modern web

closes #6168

Barış Soner Uşaklı2bb8227574e0
diff --git a/src/cli/upgrade.js b/src/cli/upgrade.js
index 179970192b..026a104c30 100644
--- a/src/cli/upgrade.js
+++ b/src/cli/upgrade.js
@@ -81,7 +81,7 @@ function runSteps(tasks) {
function runUpgrade(upgrades, options) {
console.log('\nUpdating NodeBB...'.cyan);
-
+ options = options || {};
// disable mongo timeouts during upgrade
nconf.set('mongo:options:socketTimeoutMS', 0);