From 299a9f5798b74d3affd7d3d91961d88ae2eb0f62 Mon Sep 17 00:00:00 2001 From: Bastien Dumont <bdumont@grandlyon.com> Date: Fri, 29 Mar 2024 09:54:41 +0100 Subject: [PATCH] publish: chore: fix standalone generated from commit 09c6ef54ffa15bebfccbcdc03e7f6f999eac99cb --- index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.js b/index.js index f5cf5d6..d9dc9e8 100644 --- a/index.js +++ b/index.js @@ -209,6 +209,14 @@ 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 + } const boUrlGRDF = new URL('/api/grdf', boBaseUrl).href try { -- GitLab