From 03a09252ebb3d2f5e8658c370c314ce3706fcddb Mon Sep 17 00:00:00 2001
From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com>
Date: Thu, 11 Aug 2022 10:04:28 +0200
Subject: [PATCH] publish: fix: build

generated from commit e1b85de07c58540ec31d27517693c4d11397d6d0
---
 index.js | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/index.js b/index.js
index 506f95d..4a8b627 100644
--- a/index.js
+++ b/index.js
@@ -85,7 +85,14 @@ async function start(fields, cozyParameters) {
   }
 
   // Prevent missing configuration
-  if (!baseUrl || !apiAuthKey || !contractId || !sgeLogin) {
+  if (
+    !baseUrl ||
+    !apiAuthKey ||
+    !contractId ||
+    !sgeLogin ||
+    !fields.apiToken ||
+    !fields.boBaseUrl
+  ) {
     log('error', `Missing configuration secrets`)
     throw errors.VENDOR_DOWN
   }
-- 
GitLab