From 61106ac23da8198cdfeb2fe6040a2c0a0e87c31f Mon Sep 17 00:00:00 2001
From: git-directory-deploy <>
Date: Wed, 27 Jan 2021 14:17:07 +0100
Subject: [PATCH] publish:  consent for load curve data and manual execution

generated from commit 1ca126af82b1ff8cf8dab48e199e0315e9dc4e80
---
 index.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/index.js b/index.js
index 1d1fd8b..61d65f9 100644
--- a/index.js
+++ b/index.js
@@ -340,8 +340,8 @@ async function launchLoadDataProcess(
       'com.grandlyon.enedis.minute',
       ['year', 'month', 'day', 'hour', 'minute']
     )
-    log('info', 'Agregate enedis load data for hour')
-    await agregateHourlyData(processedLoadData)
+    // log('info', 'Agregate enedis load data for hour')
+    // await agregateHourlyData(processedLoadData)
   } else {
     log('info', 'No consent or data for load curve')
   }
@@ -559,7 +559,7 @@ async function isHistoryLoaded(doctype) {
       return (
         el.year <= startLoadDate.year &&
         el.month <= startLoadDate.month &&
-        el.day <= startLoadDate.day
+        el.day <= startLoadDate.day-1
       )
     })
     if (filtered.length > 0) {
-- 
GitLab