From 98038b0f61edbe4481f0b249c42d8a12b7a795fd Mon Sep 17 00:00:00 2001 From: git-directory-deploy <> Date: Thu, 28 Jan 2021 14:15:07 +0100 Subject: [PATCH] publish: use moment for isHistoryLoaded function generated from commit a041b829112bfe4bd211a5b74338d2170e67f1c3 --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 8a2a37a..ffd6232 100644 --- a/index.js +++ b/index.js @@ -108,7 +108,7 @@ moment.tz.setDefault('Europe/Paris') // set the timezone /*** Connector Constants ***/ const manualExecution = process.env.COZY_JOB_MANUAL_EXECUTION -const startDailyDate = manualExecution +let startDailyDate = manualExecution ? moment().subtract(12, 'month') : moment().subtract(32, 'month') const startDailyDateString = startDailyDate.format('YYYY-MM-DD') -- GitLab