From c4502d8e138a49491583cc108257362cf7a9c102 Mon Sep 17 00:00:00 2001 From: git-directory-deploy <> Date: Wed, 24 Feb 2021 15:40:25 +0100 Subject: [PATCH] publish: logs generated from commit dec78695e588f1d15f37f8b1512b50a99b34ed23 --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 4a254a8..f1c0b09 100644 --- a/index.js +++ b/index.js @@ -139,7 +139,7 @@ moment.tz.setDefault("Europe/Paris"); // set the timezone const startDate = moment() .startOf("year") // .subtract(3, "year") - .subtract(6, "month") + .subtract(1, "month") .subtract(1, "day") .format("MM/DD/YYYY"); const endDate = moment().format("MM/DD/YYYY"); @@ -271,6 +271,7 @@ async function getData(response, baseUrl, apiAuthKey) { } function format(response) { + log("info", "origin response size is : " + response.resultatRetour.length) const data = response.resultatRetour .slice(1) .filter(value => value.ValeurIndex); @@ -368,7 +369,7 @@ async function storeData(data, doctype, keys) { log("debug", "Store into " + doctype); log("debug", "Store into keys : " + keys); data.map(v => { - log("info", "Saving data " + v.load + " for " + v.day + "/" + v.month); + log("info", "Saving data " + v.load + " for " + v.day + "/" + v.month + "/" + v.year); }); return hydrateAndFilter(data, doctype, { keys: keys -- GitLab