From f8def6071af89d45caad52b1a453f92e84306f6c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Pailharey?= <rpailharey@grandlyon.com>
Date: Fri, 28 Oct 2022 16:51:44 +0200
Subject: [PATCH] publish: tmp

generated from commit 904559ab66fc24a95731ca71bbd74589b8a30dd1
---
 index.js           | 4 +---
 onDeleteAccount.js | 4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/index.js b/index.js
index 0e62e2a..6c8ae25 100644
--- a/index.js
+++ b/index.js
@@ -228880,7 +228880,6 @@ async function saveAccountData(accountId, accountData) {
     })}`
   )
 
-  const id = account._id
   log(
     'info',
     `saveAccountData account after id: ${JSON.stringify({
@@ -228891,8 +228890,7 @@ async function saveAccountData(accountId, accountData) {
   account = await updateOrCreate(
     [{ ...account, data: accountData }],
     'io.cozy.accounts',
-    ['account_type'],
-    { sourceAccount: id }
+    ['account_type']
   )
   log('info', `saveAccountData account reply: ${JSON.stringify(account)}`)
   return account
diff --git a/onDeleteAccount.js b/onDeleteAccount.js
index a2cd65e..f77fb6a 100644
--- a/onDeleteAccount.js
+++ b/onDeleteAccount.js
@@ -227625,7 +227625,6 @@ async function saveAccountData(accountId, accountData) {
     })}`
   )
 
-  const id = account._id
   log(
     'info',
     `saveAccountData account after id: ${JSON.stringify({
@@ -227636,8 +227635,7 @@ async function saveAccountData(accountId, accountData) {
   account = await updateOrCreate(
     [{ ...account, data: accountData }],
     'io.cozy.accounts',
-    ['account_type'],
-    { sourceAccount: id }
+    ['account_type']
   )
   log('info', `saveAccountData account reply: ${JSON.stringify(account)}`)
   return account
-- 
GitLab