Rename updateMetrics
to scheduleUpdateMetrics
This commit is contained in:
parent
4831c25ce0
commit
dc51e2cf46
|
@ -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'
|
||||
|
|
|
@ -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'), {
|
||||
|
|
Loading…
Reference in New Issue
Block a user