From 591afbe5cbee55ae0090ec8d1c14c49a066d30de Mon Sep 17 00:00:00 2001
From: git-directory-deploy <>
Date: Thu, 28 Jan 2021 15:26:52 +0100
Subject: [PATCH] handle manual execution

---
 src/index.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/index.js b/src/index.js
index 02de2c6..1c01b40 100644
--- a/src/index.js
+++ b/src/index.js
@@ -17,7 +17,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
+const manualExecution =
+  process.env.COZY_JOB_MANUAL_EXECUTION === 'true' ? true : false
 const startDailyDate = manualExecution
   ? moment().subtract(12, 'month')
   : moment().subtract(32, 'month')
-- 
GitLab