-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Document methods work with both clients
The `Document` methods make different internal calls depending on the client being used (i.e. `cozy-client` or `cozy-client-js`). However, the `cozy-client` calls' responses don't have the same signature as the `cozy-client-js` ones and were not transformed leading to errors in (at least) the `BankingReconciliator` when trying to match transactions with their account. We now make sure that the `cozy-client` calls returning an object with a `data` attribute are transformed so that the `Document` methods always return the content of that attribute (`cozy-client-js` already does that).
- Loading branch information
1 parent
0111fa4
commit 5eba284
Showing
2 changed files
with
37 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters