Merge branch 'mealie-next' into feat/nuxt-fonts

This commit is contained in:
Michael Genson 2025-07-08 16:57:12 -05:00 committed by GitHub
commit 2464ab0cf9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -404,8 +404,7 @@ class RecipeService(RecipeServiceBase):
return new_data return new_data
def patch_one(self, slug_or_id: str | UUID, patch_data: Recipe) -> Recipe: 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: Recipe = self._pre_update_check(slug_or_id, patch_data)
recipe = self.get_one(slug_or_id)
new_data = self.group_recipes.patch(recipe.slug, patch_data.model_dump(exclude_unset=True)) new_data = self.group_recipes.patch(recipe.slug, patch_data.model_dump(exclude_unset=True))