manifold/functions/src/keep-awake.ts

13 lines
319 B
TypeScript
Raw Normal View History

2021-12-18 02:12:58 +00:00
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'),
])
})