manifold/functions/src/scripts/update-metrics.ts

16 lines
337 B
TypeScript
Raw Normal View History

import { initAdmin } from './script-init'
initAdmin()
import { log, logMemory } from '../utils'
import { updateMetricsCore } from '../update-metrics'
async function updateMetrics() {
logMemory()
log('Updating metrics...')
await updateMetricsCore()
}
if (require.main === module) {
updateMetrics().then(() => process.exit())
}