From 85d224535b4ebce0262c96e8d86056f1126c9127 Mon Sep 17 00:00:00 2001 From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com> Date: Thu, 22 Sep 2022 17:19:29 +0200 Subject: [PATCH] log --- src/requests/cozy.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/requests/cozy.js b/src/requests/cozy.js index 138c822..43ab428 100644 --- a/src/requests/cozy.js +++ b/src/requests/cozy.js @@ -17,6 +17,7 @@ async function saveAccountData(accountId, accountData) { async function getAccount(accountId) { log('info', `getAccount: ${accountId}`) const accounts = await cozyClient.data.findAll('io.cozy.accounts') + log('info', `getAccount: ${JSON.stringify(accounts)}`) return accounts.filter(account => isLocal() ? account._id === accountId : account.account_type === accountId )[0] -- GitLab