Rename updateMetrics to scheduleUpdateMetrics

This commit is contained in:
James Grugett 2022-10-09 19:11:44 -05:00
parent 4831c25ce0
commit dc51e2cf46
2 changed files with 2 additions and 2 deletions

View File

@ -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'

View File

@ -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'), {