2022-06-12 23:22:29 +00:00
|
|
|
import { initAdmin } from './script-init'
|
|
|
|
initAdmin()
|
|
|
|
|
|
|
|
import { log, logMemory } from '../utils'
|
2022-06-15 00:38:38 +00:00
|
|
|
import { updateMetricsCore } from '../update-metrics'
|
2022-06-12 23:22:29 +00:00
|
|
|
|
|
|
|
async function updateMetrics() {
|
|
|
|
logMemory()
|
2022-06-15 00:38:38 +00:00
|
|
|
log('Updating metrics...')
|
|
|
|
await updateMetricsCore()
|
2022-06-12 23:22:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
if (require.main === module) {
|
|
|
|
updateMetrics().then(() => process.exit())
|
|
|
|
}
|