From 0feb5c1b6357381ea4121ac34ff6fabcf5848d59 Mon Sep 17 00:00:00 2001
From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com>
Date: Fri, 7 Oct 2022 14:09:16 +0200
Subject: [PATCH] publish: fix: error to warn log

generated from commit 0741d040cf873b2c8785ae4192ee472295b00b98
---
 index.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/index.js b/index.js
index 4e4ee7d..60bd131 100644
--- a/index.js
+++ b/index.js
@@ -136,8 +136,11 @@ async function start(fields, cozyParameters) {
       sgeLogin,
       pointId
     )
+    log('warn', `Date : ${userContractstartDate}`)
     startDailyDate = moment(userContractstartDate, 'YYYY-MM-DD')
     startDailyDateString = startDailyDate.format('YYYY-MM-DD')
+    log('warn', `startDailyDate : ${startDailyDate}`)
+    log('warn', `startDailyDateString : ${startDailyDateString}`)
 
     const contractStartDate = moment().format('YYYY-MM-DD')
     const contractEndDate = moment()
-- 
GitLab