From dc51e2cf46b7d5ad870c80fd5aba8e10d2099420 Mon Sep 17 00:00:00 2001 From: James Grugett Date: Sun, 9 Oct 2022 19:11:44 -0500 Subject: [PATCH] Rename `updateMetrics` to `scheduleUpdateMetrics` --- functions/src/index.ts | 2 +- functions/src/update-metrics.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/src/index.ts b/functions/src/index.ts index 763fd8bb..a6d120c8 100644 --- a/functions/src/index.ts +++ b/functions/src/index.ts @@ -9,7 +9,7 @@ export * from './on-create-user' export * from './on-create-bet' export * from './on-create-comment-on-contract' export * from './on-view' -export { updateMetrics } from './update-metrics' +export { scheduleUpdateMetrics } from './update-metrics' export * from './update-stats' export * from './update-loans' export * from './backup-db' diff --git a/functions/src/update-metrics.ts b/functions/src/update-metrics.ts index 4739dcc1..e77ab71f 100644 --- a/functions/src/update-metrics.ts +++ b/functions/src/update-metrics.ts @@ -26,7 +26,7 @@ import { getFunctionUrl } from '../../common/api' const firestore = admin.firestore() -export const updateMetrics = functions.pubsub +export const scheduleUpdateMetrics = functions.pubsub .schedule('every 15 minutes') .onRun(async () => { const response = await fetch(getFunctionUrl('updatemetrics'), {