Fixed return promis

This commit is contained in:
Kasra Bigdeli
2019-08-14 15:11:18 -04:00
parent e38d546744
commit d5ad13ba63
+1 -1
View File
@@ -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.'))