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'), ]) })