From 14c54fef1d41523d9df5356e374f098a622d5973 Mon Sep 17 00:00:00 2001
From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com>
Date: Fri, 28 Oct 2022 12:25:44 +0200
Subject: [PATCH] fix(account): account storing ID

---
 package.json | 1 -
 src/index.js | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/package.json b/package.json
index 3745d60..03d4a71 100644
--- a/package.json
+++ b/package.json
@@ -9,7 +9,6 @@
   "keywords": [],
   "author": "Cozy Cloud",
   "license": "AGPL-3.0",
-  "main": "./src/index.js",
   "eslintConfig": {
     "extends": [
       "cozy-app"
diff --git a/src/index.js b/src/index.js
index 2b078e3..cd15b06 100644
--- a/src/index.js
+++ b/src/index.js
@@ -168,7 +168,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