diff --git a/index.js b/index.js
index 716e3a6371ae2d75a7d870d4db1788aa66c8eea2..6f2f7fafdf448d9c5ed994d40233ec3927274421 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