mirror of
https://github.com/R0m1k3/Apiflow-gateway.git
synced 2026-10-11 17:27:08 +02:00
feat: Implement a new data synchronization service with cron scheduling, dashboard integration, and force mode for immediate execution.
This commit is contained in:
1 parent
44b24f2e7b
commit
83a4710e5d
1 file changed
+2
-2
+2
-2
@@ -77,8 +77,8 @@ if (forceMode) {
|
||||
});
|
||||
} else {
|
||||
startDashboard();
|
||||
console.log('Service sync Hostinger démarré — cron: 30 5 * * * (5h30 chaque nuit)');
|
||||
cron.schedule('30 5 * * *', () => {
|
||||
console.log('Service sync Hostinger démarré — cron: 0 7 * * * (7h00 chaque nuit)');
|
||||
cron.schedule('0 7 * * *', () => {
|
||||
syncAll(false).catch(err => console.error('Erreur cron sync:', err.message));
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user