diff --git a/index.js b/index.js index 5dfc64c50ac0c98bda05a776e1795cb927958fb5..7ac991298282b9ce6e4fe57fb17a0620fba50253 100644 --- a/index.js +++ b/index.js @@ -107,7 +107,7 @@ moment.locale('fr') // set the language moment.tz.setDefault('Europe/Paris') // set the timezone /*** Connector Constants ***/ -const manualExecution = process.env.COZY_JOB_MANUAL_EXECUTION +const manualExecution = false const startDailyDate = manualExecution ? moment().subtract(12, 'month') : moment().subtract(32, 'month') @@ -136,6 +136,7 @@ const loadCurveURL = `${baseUrl}/v4/metering_data/consumption_load_curve` async function start(fields, cozyParameters, doRetry = true) { log('info', 'Starting the enedis konnector') log('info', `Manual execution: ${manualExecution}`) + log('info', `Start_date: ${startDailyDateString}`) const accountId = getAccountId() let usage_point_id = '' try {