This commit is contained in:
github-actions[bot] 2022-10-10 00:12:08 +00:00 committed by GitHub
commit 08abc13ede
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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-bet'
export * from './on-create-comment-on-contract' export * from './on-create-comment-on-contract'
export * from './on-view' export * from './on-view'
export { updateMetrics } from './update-metrics' export { scheduleUpdateMetrics } from './update-metrics'
export * from './update-stats' export * from './update-stats'
export * from './update-loans' export * from './update-loans'
export * from './backup-db' export * from './backup-db'

View File

@ -26,7 +26,7 @@ import { getFunctionUrl } from '../../common/api'
const firestore = admin.firestore() const firestore = admin.firestore()
export const updateMetrics = functions.pubsub export const scheduleUpdateMetrics = functions.pubsub
.schedule('every 15 minutes') .schedule('every 15 minutes')
.onRun(async () => { .onRun(async () => {
const response = await fetch(getFunctionUrl('updatemetrics'), { const response = await fetch(getFunctionUrl('updatemetrics'), {