diff --git a/src/routes/user/system/SystemRouter.ts b/src/routes/user/system/SystemRouter.ts index a40f97b0..180fa0df 100644 --- a/src/routes/user/system/SystemRouter.ts +++ b/src/routes/user/system/SystemRouter.ts @@ -91,7 +91,7 @@ router.post('/enablessl/', function(req, res, next) { .then(function() { // This is necessary as the CLI immediately tries to connect to https://captain.root.com // Without this delay it'll fail to connect - Utils.getDelayedPromise(5000) + return Utils.getDelayedPromise(5000) }) .then(function() { res.send(new BaseApi(ApiStatusCodes.STATUS_OK, 'Root SSL Enabled.'))