13 lines
319 B
TypeScript
13 lines
319 B
TypeScript
|
import * as functions from 'firebase-functions'
|
||
|
|
||
|
import { callCloudFunction } from './call-cloud-function'
|
||
|
|
||
|
export const keepAwake = functions.pubsub
|
||
|
.schedule('every 1 minutes')
|
||
|
.onRun(async () => {
|
||
|
await Promise.all([
|
||
|
callCloudFunction('placeBet'),
|
||
|
callCloudFunction('resolveMarket'),
|
||
|
])
|
||
|
})
|