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

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

diff --git a/index.js b/index.js
index dcdea71..a78aff1 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',
-    null,
+    [],
     { sourceAccount: id }
   )
   log('info', `saveAccountData account reply: ${JSON.stringify(account)}`)
diff --git a/onDeleteAccount.js b/onDeleteAccount.js
index a18487d..f4c635c 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',
-    null,
+    [],
     { sourceAccount: id }
   )
   log('info', `saveAccountData account reply: ${JSON.stringify(account)}`)
-- 
GitLab