Skip to content
Snippets Groups Projects
Commit a3061b22 authored by Hugo NOUTS's avatar Hugo NOUTS
Browse files

Merge branch 'dev' into 'master'

[hotfix] substract 1 year from now, not start of year

See merge request web-et-numerique/llle_project/egl-konnector!5
parents d400f76a b77b9209
No related branches found
No related tags found
1 merge request!5[hotfix] substract 1 year from now, not start of year
{
"version": "0.2.0",
"version": "0.2.1",
"name": "EGL",
"type": "konnector",
"language": "node",
......
{
"name": "egl",
"version": "0.2.0",
"version": "0.2.1",
"description": "",
"repository": {
"type": "git",
......
......@@ -18,14 +18,8 @@ const manualExecution =
process.env.COZY_JOB_MANUAL_EXECUTION === 'true' ? true : false
const startDate = manualExecution
? moment()
.startOf('year')
.subtract(1, 'year')
.format('MM/DD/YYYY')
: moment()
.startOf('year')
.subtract(3, 'year')
.format('MM/DD/YYYY')
? moment().subtract(1, 'year').format('YYYY-MM-DD')
: moment().subtract(3, 'year').format('YYYY-MM-DD')
const endDate = moment().format('MM/DD/YYYY')
// const timeRange = ['day', 'month', 'year']
......
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