From c4273ee5a3f1d5c9bfdceac162955bbddd5d034f Mon Sep 17 00:00:00 2001
From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com>
Date: Tue, 9 Aug 2022 14:43:30 +0200
Subject: [PATCH] publish: remove file

generated from commit d9f03727a4d78d9b8c440832ef81cd690461d587
---
 index.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/index.js b/index.js
index 716e3a6..6f2f7fa 100644
--- a/index.js
+++ b/index.js
@@ -70,7 +70,7 @@ module.exports = { getContractStartDate }
  */
 async function start(fields, cozyParameters) {
   log('info', 'Gathering data ...')
-  let pointId = fields.pointId
+  const pointId = fields.pointId
   let baseUrl = fields.wso2BaseUrl
   let apiAuthKey = fields.apiToken
   //TODO switch variable to english
@@ -79,7 +79,6 @@ async function start(fields, cozyParameters) {
   //TODO: Verify if condition is working in local and on build version
   if (cozyParameters && Object.keys(cozyParameters).length !== 0) {
     log('debug', 'Found COZY_PARAMETERS')
-    pointId = cozyParameters.secret.pointId
     baseUrl = cozyParameters.secret.wso2BaseUrl
     apiAuthKey = cozyParameters.secret.apiToken
     sgeLogin = cozyParameters.secret.sgeLogin
-- 
GitLab