From a996f45e00db40b0f74c45fe85518a6ae7407732 Mon Sep 17 00:00:00 2001 From: git-directory-deploy <> Date: Wed, 30 Jun 2021 16:18:30 +0200 Subject: [PATCH] publish: Merge branch 'dev' into 'master' generated from commit 6a7f575ff4574c19834226e9bf76292ced1c2fb8 --- index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 6bb5454..d8da1fe 100644 --- a/index.js +++ b/index.js @@ -168,8 +168,8 @@ async function start(fields, cozyParameters, doRetry = true) { ) log('info', 'Agregate enedis daily data for month and year') await agregateMonthAndYearData(processedDailyData) - // log('info', 'Process enedis load data') - // await startLoadDataProcess(access_token, usage_point_id) + log('info', 'Process enedis load data') + await startLoadDataProcess(access_token, usage_point_id) } catch (err) { if (err.statusCode === 403 || err.code === 403) { if (!fields.refresh_token) { @@ -314,7 +314,7 @@ async function checkConsentForLoadCurve( log('info', 'No consent for load curve') return false } else { - throw err + throw 'DEMI HEURE FAILL' } } } -- GitLab