mealie
mealie copied to clipboard
[BUG] - Multiple patch requests to recipe will duplicate ingredients and steps
First Check
- [X] This is not a feature request.
- [X] I added a very descriptive title to this issue.
- [X] I used the GitHub search to find a similar issue and didn't find it.
- [X] I searched the Mealie documentation, with the integrated search.
- [X] I already read the docs and didn't find an answer.
- [ ] This issue can be replicated on the demo site (https://demo.mealie.io/).
What is the issue you are experiencing?
When doing multiple PATCH requests with a description as payload, the recipe ingredients and steps are duplicated.
Note: The bug happens with payload to set the description, but might happen with other payloads too The bug happens with a parsed ingredient, but might happen with any sort of ingredient. My foods do have extra data and the sorts. If not reproduceable, I can give more details how the data looks on my end.
Steps to Reproduce
- Create a recipe with an (parsed) ingredient and one step
- do three PATCH requests with a change for description as payload AT THE SAME TIME
- they will all resolve, but the recipe will have duplications of the ingredients and steps (in this case three times).
Please provide relevant logs
Mealie Version
Latest nightly
Deployment
Docker (Linux)
Additional Deployment Details
No response