From aa69eb44cb7705c00ff3427e53087edece262304 Mon Sep 17 00:00:00 2001 From: git-directory-deploy <> Date: Thu, 28 Jan 2021 14:46:48 +0100 Subject: [PATCH] publish: use moment for isHistoryLoaded function generated from commit a041b829112bfe4bd211a5b74338d2170e67f1c3 --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index a611622..ab25ad4 100644 --- a/index.js +++ b/index.js @@ -107,7 +107,8 @@ moment.locale('fr') // set the language moment.tz.setDefault('Europe/Paris') // set the timezone /*** Connector Constants ***/ -const manualExecution = process.env.COZY_JOB_MANUAL_EXECUTION === "true" ? true : false +const manualExecution = + process.env.COZY_JOB_MANUAL_EXECUTION === 'true' ? true : false const startDailyDate = manualExecution ? moment().subtract(12, 'month') : moment().subtract(32, 'month') -- GitLab