From 83a4710e5dfcc19dfe5e8a15f2072eab98d41698 Mon Sep 17 00:00:00 2001 From: Michael SCHAL Date: Sun, 22 Mar 2026 10:55:09 +0100 Subject: [PATCH] feat: Implement a new data synchronization service with cron scheduling, dashboard integration, and force mode for immediate execution. --- sync/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sync/index.js b/sync/index.js index 6814b9a..88940d7 100644 --- a/sync/index.js +++ b/sync/index.js @@ -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)); }); }