mirror of
https://github.com/caprover/caprover
synced 2026-10-04 20:37:43 +00:00
Fixed return promis
This commit is contained in:
@@ -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.'))
|
||||
|
||||
Reference in New Issue
Block a user