From 3460f1f599abd3ba55a220aea6719444eb23ee0c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Pailharey?= <rpailharey@grandlyon.com>
Date: Wed, 28 Feb 2024 10:37:12 +0100
Subject: [PATCH] publish: Merge branch 'fix/terms_version_mismatch_error' into
 'dev'

generated from commit 4c16f16ef2c6aba674158e07ecf1828b8f9e66a7
---
 index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.js b/index.js
index dc67180..b77507b 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')
-- 
GitLab