diff --git a/index.js b/index.js index 6bb545426fce641225db75d07ca6e9dc1945496f..d8da1fe39ac9507fe7478de80564097ab3d56f8f 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' } } }