16 lines
325 B
TypeScript
16 lines
325 B
TypeScript
|
import { initAdmin } from './script-init'
|
||
|
initAdmin()
|
||
|
|
||
|
import { log, logMemory } from '../utils'
|
||
|
import { updateStatsCore } from '../update-stats'
|
||
|
|
||
|
async function updateStats() {
|
||
|
logMemory()
|
||
|
log('Updating stats...')
|
||
|
await updateStatsCore()
|
||
|
}
|
||
|
|
||
|
if (require.main === module) {
|
||
|
updateStats().then(() => process.exit())
|
||
|
}
|