diff --git a/index.js b/index.js index c514e5efa1b487c7e716c99a576f7d9f9d270081..a099b369161538956a79805b015a7e90f3aeb655 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 = 8 for (let i = 0; i < MAX_HISTO; i++) { log('info', 'launch process with history')