+
Skip to content

fix: update surcharge mutation will send the whole item #6569

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

Conversation

sushmitha-malae
Copy link
Contributor

@sushmitha-malae sushmitha-malae commented Oct 18, 2022

Signed-off-by: Sushmitha Malae malaesushmitha@gmail.com

Resolves #6508
Impact: minor
Type: bugfix

Issue

The updateSurcharge Mutation will only return the updated fields instead of returning the full item from db

Solution

Returning the updated full document instead of the partially updated fields.

Breaking changes

None

Testing

Modified the existing utc, to test the change.

More detail for what each of these sections should include are available in our Contributing Docs. This project uses semantic-release, please use their commit message format..

@changeset-bot
Copy link

changeset-bot bot commented Oct 18, 2022

🦋 Changeset detected

Latest commit: 135c54e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@reactioncommerce/api-plugin-surcharges Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@sushmitha-malae
Copy link
Contributor Author

@delagroove Please review the changes, Thanks!

@brent-hoover brent-hoover requested a review from vanpho93 October 18, 2022 10:25
@delagroove
Copy link
Contributor

@brent-hoover
Copy link
Collaborator

@sushmitha-malae You have failing tests here

@sushmitha-malae
Copy link
Contributor Author

having some problem with the sign off on the commits, raised duplicate PR. Closing this.

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.

updateSurcharge should return the full item from db
3 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载