Fix promises -> promise
This commit is contained in:
parent
0b638561f6
commit
4115d0acb7
@ -37,7 +37,7 @@ function api._ping()
|
||||
|
||||
api.state = api.PINGING_API
|
||||
|
||||
local _, data = await( promises.all( api.checkCFCEndpoint(), api.checkGlobalEndpoint() ) )
|
||||
local _, data = await( promise.all( api.checkCFCEndpoint(), api.checkGlobalEndpoint() ) )
|
||||
local cfcStatus, globalStatus = data[1][1], data[2][1]
|
||||
|
||||
if cfcStatus and globalStatus then
|
||||
|
Loading…
Reference in New Issue
Block a user