gitea-sync/src/index.ts

11 lines
266 B
TypeScript
Raw Normal View History

2023-03-09 01:09:52 +00:00
import cron from 'node-cron'
import { Config } from './config.js'
import { sync } from './core.js'
import { logger } from './logger.js'
logger.info(`Mirror manager - ${Config.version}`, { version: Config.version })
await sync()
cron.schedule('0/5 * * * *', sync)