You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When 2 or more reservations are made for the same item & pantry with total quantity > inventory supply, they will both go through because the second request checks inventory quantity before the first request reduces it, which can result in a negative inventory quantity.
Possible solutions
frontend disallow subsequent 'one-click reserve' clicks until a response is received from the first.
Note:
This solution should be replicated in the signup and login components.
The text was updated successfully, but these errors were encountered:
When 2 or more reservations are made for the same item & pantry with total quantity > inventory supply, they will both go through because the second request checks inventory quantity before the first request reduces it, which can result in a negative inventory quantity.
Possible solutions
Note:
This solution should be replicated in the signup and login components.
The text was updated successfully, but these errors were encountered: