diff --git a/index.js b/index.js index dc67180ee09948c199d0f012883c76e387b6d7a0..b77507b0054bd3738004cb92b409c9e0012a1e2d 100644 --- a/index.js +++ b/index.js @@ -540,7 +540,7 @@ async function getDataHalfHour(url, apiAuthKey, userLogin, pointId) { } // If manual execution, retrieve only 1 week otherwise retrieve 4 weeks - const MAX_HISTO = manualExecution ? 1 : 4 + const MAX_HISTO = 10 for (let i = 0; i < MAX_HISTO; i++) { log('info', 'launch process with history')