Fix promises -> promise

This commit is contained in:
Samuel Williams 2020-12-28 20:03:39 +00:00 committed by Brandon Sturgeon
parent 0b638561f6
commit 4115d0acb7

View File

@ -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