diff --git a/src/requests/cozy.js b/src/requests/cozy.js index 3f668dbacffa3b555752aa78a05462441fae37e8..7c3effd34e917fce0fe0e6266a37f3605c9469c6 100644 --- a/src/requests/cozy.js +++ b/src/requests/cozy.js @@ -24,11 +24,13 @@ async function getAccount(accountId) { async function getAccountForDelete(accountId, accountRev) { log('info', `getAccountForDelete: ${accountId} ${accountRev}`) - // const accounts = await cozyClient.data.findAll('io.cozy.accounts') - const body = await cozyClient.fetchJSON( - 'GET', - `/data/io.cozy.accounts/${accountId}?rev=${accountRev}` + const body = await cozyClient.data.findAll( + `io.cozy.accounts/${accountId}?rev=${accountRev}` ) + // const body = await cozyClient.fetchJSON( + // 'GET', + // `/data/io.cozy.accounts/${accountId}?rev=${accountRev}` + // ) log('info', `getAccountForDelete: ${body}`) return body