From d5ad13ba63d9c305d0156569a45e997ebccffccb Mon Sep 17 00:00:00 2001 From: Kasra Bigdeli Date: Wed, 14 Aug 2019 15:11:18 -0400 Subject: [PATCH] Fixed return promis --- src/routes/user/system/SystemRouter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.'))