From 13918b64d5be16d17d03cc3042ec64bdda65a73a Mon Sep 17 00:00:00 2001
From: build-token <build-token>
Date: Wed, 4 Jan 2023 15:30:15 +0000
Subject: [PATCH] publish: Update .gitlab-ci.yml file

generated from commit 580a338d5b5ca69cc265c2648f799de1ffe2f919
---
 index.js     | 8 ++------
 package.json | 4 ++--
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/index.js b/index.js
index 9bf2b14..e5b2162 100644
--- a/index.js
+++ b/index.js
@@ -244,8 +244,6 @@ async function buildAgregatedData(data, doctype) {
 }
 
 async function authenticate(login, password, baseUrl, apiAuthKey) {
-  
-  log("debug", "BEFORE REQUEST");
   const authRequest = {
     method: "POST",
     uri: baseUrl + "/connect.aspx",
@@ -265,8 +263,7 @@ async function authenticate(login, password, baseUrl, apiAuthKey) {
   } catch(e) {
     log("error", e)
   }
-  
-  log("debug", `Auth code: ${response.codeRetour}`);
+
   if (response.codeRetour === 100) {
     return response;
   } else {
@@ -295,14 +292,13 @@ async function getData(response, baseUrl, apiAuthKey) {
   try {
     // Sort data by date
 
-    log("debug", "TRY ?");
     const responseEgl = await rp(dataRequest).then(eglRawData => {
       eglRawData.resultatRetour.sort(function(a, b) {
         return new Date(a.DateReleve) - new Date(b.DateReleve);
       });
       return eglRawData;
     });
-    log("debug", `Code retour: ${responseEgl.codeRetour}`);
+
     switch (responseEgl.codeRetour) {
       case 100:
         return format(responseEgl);
diff --git a/package.json b/package.json
index d2499de..d0d348b 100644
--- a/package.json
+++ b/package.json
@@ -33,8 +33,8 @@
     "clean": "rm -rf ./data",
     "build": "webpack",
     "lint": "eslint --fix .",
-    "deploy": "git-directory-deploy --directory build/ --branch ${DEPLOY_BRANCH:-build} --repo=${DEPLOY_REPOSITORY:-https://forge.grandlyon.com/web-et-numerique/llle_project/egl-konnector.git}",
-    "deploy-dev": "git-directory-deploy --directory build/ --branch ${DEPLOY_BRANCH:-build-dev} --repo=${DEPLOY_REPOSITORY:-https://forge.grandlyon.com/web-et-numerique/llle_project/egl-konnector.git}",
+    "deploy": "git-directory-deploy --directory build/ --branch ${DEPLOY_BRANCH:-build}",
+    "deploy-dev": "git-directory-deploy --directory build/ --branch ${DEPLOY_BRANCH:-build-dev}",
     "cozyPublish": "cozy-app-publish --token $REGISTRY_TOKEN --build-commit $(git rev-parse ${DEPLOY_BRANCH:-build})",
     "travisDeployKey": "./bin/generate_travis_deploy_key"
   },
-- 
GitLab