mirror of
https://github.com/cupcakearmy/gitea-sync.git
synced 2024-12-23 00:26:29 +00:00
11 lines
266 B
TypeScript
11 lines
266 B
TypeScript
|
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)
|