From 8e96ab43fd98a6d6808684776fe8128ec70b437e Mon Sep 17 00:00:00 2001
From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com>
Date: Thu, 22 Sep 2022 17:50:23 +0200
Subject: [PATCH] publish: fix

generated from commit 5e159cb06da20a3069801d0185a8b2fae01f6607
---
 index.js           | 8 ++++----
 onDeleteAccount.js | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/index.js b/index.js
index 994e3eb..2f0fc14 100644
--- a/index.js
+++ b/index.js
@@ -228506,9 +228506,9 @@ module.exports = {
 /* 1604 */
 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
 
-const { log, updateOrCreate } = __webpack_require__(1)
+const { log, updateOrCreate, cozyClient } = __webpack_require__(1)
 const { isLocal } = __webpack_require__(1605)
-const cozyClient = __webpack_require__(485)
+// const cozyClient = require('cozy-konnector-libs/dist/libs/cozyclient')
 
 async function saveAccountData(accountId, accountData) {
   log('info', `saveAccountData: ${accountId}`)
@@ -228531,14 +228531,14 @@ async function getAccount(accountId) {
 }
 
 async function getAccountForDelete(accountId, accountRev) {
-  log('info', `getAccount: ${accountId}`)
+  log('info', `getAccountForDelete: ${accountId}`)
   const accounts = await cozyClient.data.findAll('io.cozy.accounts')
   const body = await cozyClient.fetchJSON(
     'GET',
     `/data/io.cozy.accounts/${accountId}?rev=${accountRev}`
   )
 
-  log('info', `getAccount: ${body}`)
+  log('info', `getAccountForDelete: ${body}`)
   return accounts.filter(account =>
     isLocal() ? account._id === accountId : account.account_type === accountId
   )[0]
diff --git a/onDeleteAccount.js b/onDeleteAccount.js
index 8e284b6..53e9bcb 100644
--- a/onDeleteAccount.js
+++ b/onDeleteAccount.js
@@ -227407,9 +227407,9 @@ module.exports = { terminateContract }
 /* 1604 */
 /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
 
-const { log, updateOrCreate } = __webpack_require__(1)
+const { log, updateOrCreate, cozyClient } = __webpack_require__(1)
 const { isLocal } = __webpack_require__(1605)
-const cozyClient = __webpack_require__(485)
+// const cozyClient = require('cozy-konnector-libs/dist/libs/cozyclient')
 
 async function saveAccountData(accountId, accountData) {
   log('info', `saveAccountData: ${accountId}`)
@@ -227432,14 +227432,14 @@ async function getAccount(accountId) {
 }
 
 async function getAccountForDelete(accountId, accountRev) {
-  log('info', `getAccount: ${accountId}`)
+  log('info', `getAccountForDelete: ${accountId}`)
   const accounts = await cozyClient.data.findAll('io.cozy.accounts')
   const body = await cozyClient.fetchJSON(
     'GET',
     `/data/io.cozy.accounts/${accountId}?rev=${accountRev}`
   )
 
-  log('info', `getAccount: ${body}`)
+  log('info', `getAccountForDelete: ${body}`)
   return accounts.filter(account =>
     isLocal() ? account._id === accountId : account.account_type === accountId
   )[0]
-- 
GitLab