gitea-sync/src/index.ts

11 lines
264 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()
2023-03-09 01:24:53 +00:00
cron.schedule(Config.cron, sync)