Skip to content
Snippets Groups Projects
Commit e2bf6f09 authored by Pierre Ecarlat's avatar Pierre Ecarlat Committed by Rémi PAILHAREY
Browse files

fix: fetch three years minus a day

parent eacdb838
No related branches found
No related tags found
2 merge requests!64Merge dev into main,!63fix: Need to fetch three years minus a day
......@@ -56,8 +56,8 @@ moment.tz.setDefault('Europe/Paris') // set the timezone
/** Connector Constants **/
const manualExecution = process.env.COZY_JOB_MANUAL_EXECUTION === 'true'
let startDate = manualExecution
? moment().subtract(12, 'month')
: moment().subtract(36, 'month')
? moment().subtract(12, 'month').add(1, 'day')
: moment().subtract(36, 'month').add(1, 'day')
let startDateString = startDate.format('YYYY-MM-DD')
const startHalfHourDate = moment().subtract(7, 'day')
const endDate = moment()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment