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'
2024-12-15 21:55:42 +00:00
import { Config } from './config.ts'
import { sync } from './core.ts'
import { logger } from './logger.ts'
2023-03-09 01:09:52 +00:00
logger.info(`Mirror manager - ${Config.version}`, { version: Config.version })
await sync()
2023-03-09 01:24:53 +00:00
cron.schedule(Config.cron, sync)