From 969fd6fc3adbdd08c1e44af15d9aba4403aa7b28 Mon Sep 17 00:00:00 2001
From: git-directory-deploy <>
Date: Wed, 16 Dec 2020 15:15:00 +0100
Subject: [PATCH] publish: feat: handle the date for history

generated from commit 5dcbe37f4618c76e3d6af39be19354eba67f629e
---
 index.js | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/index.js b/index.js
index a8dde16..fde2f4b 100644
--- a/index.js
+++ b/index.js
@@ -236,8 +236,13 @@ async function startLoadDataProcess(token, usagePointID) {
   } else {
     log('info', 'launch process with history')
     for (var i = 0; i < 4; i++) {
+      log('info', 'LOGGGGGG i ' + i)
       const increamentedStartDate = startLoadDate
       const incrementedEndDate = endDate
+      log('info', 'LOGGGGGG startLoadDate ' + startLoadDate.format('YYYY-MM-DD'))
+      log('info', 'LOGGGGGG endDate ' + endDate.format('YYYY-MM-DD'))
+      log('info', 'LOGGGGGG increamentedStartDate ' + increamentedStartDate.format('YYYY-MM-DD'))
+      log('info', 'LOGGGGGG increamentedStartDate ' + increamentedStartDate.format('YYYY-MM-DD'))
       const increamentedStartDateString = increamentedStartDate.subtract(7 * i, 'day').format('YYYY-MM-DD')
       const incrementedEndDateString = incrementedEndDate.subtract(7 * i, 'day').format('YYYY-MM-DD')
       log('info', 'LOGGGGGG increamentedStartDateString ' + increamentedStartDateString)
-- 
GitLab