Skip to content
Snippets Groups Projects
Commit 85d22453 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

log

parent 800349ec
No related branches found
No related tags found
2 merge requests!19Feat/us858 save expiration date,!17fix/US846-onDelete
......@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment