mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-14 02:37:11 -07:00
Merge 9e3896b9f3
into e794c6b525
This commit is contained in:
commit
d0b840d999
1 changed files with 1 additions and 2 deletions
|
@ -405,8 +405,7 @@ class RecipeService(RecipeServiceBase):
|
|||
return new_data
|
||||
|
||||
def patch_one(self, slug_or_id: str | UUID, patch_data: Recipe) -> Recipe:
|
||||
recipe: Recipe | None = self._pre_update_check(slug_or_id, patch_data)
|
||||
recipe = self.get_one(slug_or_id)
|
||||
recipe: Recipe = self._pre_update_check(slug_or_id, patch_data)
|
||||
|
||||
new_data = self.group_recipes.patch(recipe.slug, patch_data.model_dump(exclude_unset=True))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue