From 5b8351a360ac5e38c7f96ccf84b1584d2fab9b9f Mon Sep 17 00:00:00 2001
From: Bastien Dumont <bdumont@grandlyon.com>
Date: Fri, 29 Mar 2024 10:21:36 +0100
Subject: [PATCH] publish: chore: fix standalone

generated from commit 09c6ef54ffa15bebfccbcdc03e7f6f999eac99cb
---
 index.js | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/index.js b/index.js
index 3ece76e..f5cf5d6 100644
--- a/index.js
+++ b/index.js
@@ -209,19 +209,7 @@ async function start(fields, cozyParameters) {
     grdfId = cozyParameters.secret.client_id
     grdfSecret = cozyParameters.secret.client_secret
   }
-
-  if (!grdfId || !grdfSecret) {
-    log('debug', 'No GRDF secrets found, getting them from fields')
-    grdfId = fields.client_id
-    grdfSecret = fields.client_secret
-    boToken = fields.boToken
-    boBaseUrl = fields.boBaseUrl
-  }
-  log('debug', `BOBaseURL`)
-  log('debug', boBaseUrl)
   const boUrlGRDF = new URL('/api/grdf', boBaseUrl).href
-  log('debug', `BOURLGRDF`)
-  log('debug', boUrlGRDF)
 
   try {
     const { access_token } = await getAuthToken(grdfId, grdfSecret)
-- 
GitLab