From b2945c24b1f5f1fcce31d7c2d42a171ec63c69f5 Mon Sep 17 00:00:00 2001 From: mantikoros Date: Fri, 24 Dec 2021 16:14:02 -0500 Subject: [PATCH] turn keep awake on --- functions/src/index.ts | 2 +- functions/src/keep-awake.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/src/index.ts b/functions/src/index.ts index ee8da84b..dfb09c89 100644 --- a/functions/src/index.ts +++ b/functions/src/index.ts @@ -2,7 +2,7 @@ import * as admin from 'firebase-admin' admin.initializeApp() -// export * from './keep-awake' +export * from './keep-awake' export * from './place-bet' export * from './resolve-market' export * from './sell-bet' diff --git a/functions/src/keep-awake.ts b/functions/src/keep-awake.ts index 85aa3475..00799e65 100644 --- a/functions/src/keep-awake.ts +++ b/functions/src/keep-awake.ts @@ -8,6 +8,7 @@ export const keepAwake = functions.pubsub await Promise.all([ callCloudFunction('placeBet'), callCloudFunction('resolveMarket'), + callCloudFunction('sellBet'), ]) await sleep(30) @@ -15,6 +16,7 @@ export const keepAwake = functions.pubsub await Promise.all([ callCloudFunction('placeBet'), callCloudFunction('resolveMarket'), + callCloudFunction('sellBet'), ]) })