From 626b471848d9ba99a7c0dcce7d7e18a38d35b923 Mon Sep 17 00:00:00 2001
From: git-directory-deploy <>
Date: Thu, 28 Jan 2021 11:22:45 +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 7ac9912..8a2a37a 100644
--- a/index.js
+++ b/index.js
@@ -107,7 +107,7 @@ moment.locale('fr') // set the language
 moment.tz.setDefault('Europe/Paris') // set the timezone
 
 /*** Connector Constants ***/
-const manualExecution = false
+const manualExecution = process.env.COZY_JOB_MANUAL_EXECUTION
 const startDailyDate = manualExecution
   ? moment().subtract(12, 'month')
   : moment().subtract(32, 'month')
-- 
GitLab