-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add check to
_rev
attribute when persisting virtual documents
In previous commit we added a check to `meta.rev` attribute in order to discriminate documents that exist in remote CouchDB from the ones that don't This approach would work only for documents handled by the cozy-stack using JSON-API But some CouchDB documents are served directly through the `data` route and are not wrapped into JSON-API When this is the case, they have a `_rev` attribute instead of a `meta.rev` one So we want to check for both forms before persisting virtual documents
- Loading branch information
Showing
2 changed files
with
38 additions
and
8 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