Skip to content

Refactor inventory processing and add restock endpoint #26

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

seer-by-sentry[bot]
Copy link

Fixes REACT-5ZZ. The issue was that: Global, limited, unreplenished backend inventory causes unhandled exception when depleted, resulting in 500 Internal Server Error.

  • Increased initial inventory for wrench, nails, and hammer to 100.
  • Refactored process_order to handle multiple items of the same type in the cart and return a success/failure message.
  • Added a /restock endpoint to reset the inventory to the initial values.

This fix was generated by Seer in Sentry, triggered by [email protected]. 👁️ Run ID: 189236

Not quite right? Click here to continue debugging with Seer.

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.

0 participants