turn keep awake on
This commit is contained in:
parent
f48ae0170b
commit
b2945c24b1
|
@ -2,7 +2,7 @@ import * as admin from 'firebase-admin'
|
||||||
|
|
||||||
admin.initializeApp()
|
admin.initializeApp()
|
||||||
|
|
||||||
// export * from './keep-awake'
|
export * from './keep-awake'
|
||||||
export * from './place-bet'
|
export * from './place-bet'
|
||||||
export * from './resolve-market'
|
export * from './resolve-market'
|
||||||
export * from './sell-bet'
|
export * from './sell-bet'
|
||||||
|
|
|
@ -8,6 +8,7 @@ export const keepAwake = functions.pubsub
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
callCloudFunction('placeBet'),
|
callCloudFunction('placeBet'),
|
||||||
callCloudFunction('resolveMarket'),
|
callCloudFunction('resolveMarket'),
|
||||||
|
callCloudFunction('sellBet'),
|
||||||
])
|
])
|
||||||
|
|
||||||
await sleep(30)
|
await sleep(30)
|
||||||
|
@ -15,6 +16,7 @@ export const keepAwake = functions.pubsub
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
callCloudFunction('placeBet'),
|
callCloudFunction('placeBet'),
|
||||||
callCloudFunction('resolveMarket'),
|
callCloudFunction('resolveMarket'),
|
||||||
|
callCloudFunction('sellBet'),
|
||||||
])
|
])
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user