From cc69c5b886b8ca926a8de91403b850e1ab56f626 Mon Sep 17 00:00:00 2001 From: Michael SCHAL Date: Fri, 20 Mar 2026 08:38:46 +0100 Subject: [PATCH] feat: add data synchronization service with a web-based dashboard. --- sync/index.js | 4 ++-- sync/server.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sync/index.js b/sync/index.js index 1d70abd..6814b9a 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 3 * * * (3h30 chaque nuit)'); - cron.schedule('30 3 * * *', () => { + console.log('Service sync Hostinger démarré — cron: 30 5 * * * (5h30 chaque nuit)'); + cron.schedule('30 5 * * *', () => { syncAll(false).catch(err => console.error('Erreur cron sync:', err.message)); }); } diff --git a/sync/server.js b/sync/server.js index 0278215..74bdf95 100644 --- a/sync/server.js +++ b/sync/server.js @@ -64,7 +64,7 @@ app.get('/api/logs', (req, res) => { app.get('/api/next', (req, res) => { const now = new Date(); const next = new Date(now); - next.setHours(3, 30, 0, 0); + next.setHours(5, 30, 0, 0); if (next <= now) next.setDate(next.getDate() + 1); res.json({ next: next.toISOString() }); });