gitea-sync/src/index.ts
2024-12-15 22:55:42 +01:00

11 lines
264 B
TypeScript

import cron from 'node-cron'
import { Config } from './config.ts'
import { sync } from './core.ts'
import { logger } from './logger.ts'
logger.info(`Mirror manager - ${Config.version}`, { version: Config.version })
await sync()
cron.schedule(Config.cron, sync)