Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Document has to be wrap into a data object to update instance #1377

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

cballevre
Copy link
Member

When we tried to update io.cozy.settings.instance, the stack returns 409 errors to indicate conflicts. The problem was that we were sending the document directly, whereas the stack was looking for the document information in a data object (cf: PUT /settings/instance). Now, the cozy-stack-client wraps the document in a data object before sending it.

This fix has two benefits in cozy-setting :

  • no longer makes two requests for each profile update
  • be able to use client.save to avoid using redux soon

@Crash-- Crash-- merged commit b83bf51 into master Aug 16, 2023
4 checks passed
@Crash-- Crash-- deleted the fix/update-settings-instance branch August 16, 2023 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants