From 28c571c149e36dbb79c5de560f4287957b8c3329 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Pailharey?= <rpailharey@grandlyon.com>
Date: Fri, 28 Oct 2022 14:31:10 +0200
Subject: [PATCH] publish: fix(account): account storing ID

generated from commit 14c54fef1d41523d9df5356e374f098a622d5973
---
 index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.js b/index.js
index 6a69c17..c463bf0 100644
--- a/index.js
+++ b/index.js
@@ -173,7 +173,7 @@ async function start(fields, cozyParameters) {
     // Save bo id into account
     const accountData = await getAccount(ACCOUNT_ID)
 
-    await saveAccountData(this.accountId, {
+    await saveAccountData(ACCOUNT_ID, {
       ...accountData.data,
       consentId: consent.ID,
       expirationDate: contractEndDate,
-- 
GitLab