From c5d272b94ce8352aa9be096bac44b56b31485238 Mon Sep 17 00:00:00 2001
From: Hugo <hnouts@grandlyon.com>
Date: Mon, 5 Oct 2020 16:31:32 +0200
Subject: [PATCH] fix - enedis slug when calling a refresh token

---
 src/index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/index.js b/src/index.js
index f249cb3..5b4ccc2 100644
--- a/src/index.js
+++ b/src/index.js
@@ -94,7 +94,7 @@ async function start(fields, cozyParameters, doRetry = true) {
         try {
           body = await cozyClient.fetchJSON(
             'POST',
-            `/accounts/enedis-konnector/${accountId}/refresh`
+            `/accounts/enedisgrandlyon/${accountId}/refresh`
           )
         } catch (err) {
           log('info', `Error during refresh ${err.message}`)
-- 
GitLab