feat: Implement a new data synchronization service with cron scheduling, dashboard integration, and force mode for immediate execution.

This commit is contained in:
Michael committed 2026-03-22 10:55:09 +01:00
1 parent 44b24f2e7b
commit 83a4710e5d
1 file changed
+2 -2
+2 -2
View File
@@ -77,8 +77,8 @@ if (forceMode) {
}); });
} else { } else {
startDashboard(); startDashboard();
console.log('Service sync Hostinger démarré — cron: 30 5 * * * (5h30 chaque nuit)'); console.log('Service sync Hostinger démarré — cron: 0 7 * * * (7h00 chaque nuit)');
cron.schedule('30 5 * * *', () => { cron.schedule('0 7 * * *', () => {
syncAll(false).catch(err => console.error('Erreur cron sync:', err.message)); syncAll(false).catch(err => console.error('Erreur cron sync:', err.message));
}); });
} }