From d6ad17f0611f577d8f37f118a7534023146246e1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Pailharey?= <rpailharey@grandlyon.com>
Date: Fri, 28 Oct 2022 16:49:14 +0200
Subject: [PATCH] =?UTF-8?q?publish:=20new=20r=C3=A9mi?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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

diff --git a/index.js b/index.js
index a78aff1..0e62e2a 100644
--- a/index.js
+++ b/index.js
@@ -228891,7 +228891,7 @@ async function saveAccountData(accountId, accountData) {
   account = await updateOrCreate(
     [{ ...account, data: accountData }],
     'io.cozy.accounts',
-    [],
+    ['account_type'],
     { sourceAccount: id }
   )
   log('info', `saveAccountData account reply: ${JSON.stringify(account)}`)
diff --git a/onDeleteAccount.js b/onDeleteAccount.js
index f4c635c..a2cd65e 100644
--- a/onDeleteAccount.js
+++ b/onDeleteAccount.js
@@ -227636,7 +227636,7 @@ async function saveAccountData(accountId, accountData) {
   account = await updateOrCreate(
     [{ ...account, data: accountData }],
     'io.cozy.accounts',
-    [],
+    ['account_type'],
     { sourceAccount: id }
   )
   log('info', `saveAccountData account reply: ${JSON.stringify(account)}`)
-- 
GitLab