mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-23 06:45:22 -07:00
fix: setting of scaled_amount in sent data
This commit is contained in:
parent
d3cee29a3c
commit
0a737b0af0
1 changed files with 3 additions and 3 deletions
|
@ -93,11 +93,11 @@ class GroupRecipeActionController(BaseUserController):
|
||||||
detail=ErrorResponse.respond(message="Not found."),
|
detail=ErrorResponse.respond(message="Not found."),
|
||||||
) from e
|
) from e
|
||||||
|
|
||||||
recipe.scaled_amount = scaled_amount
|
payload = GroupRecipeActionPayload(action=recipe_action, content=recipe).model_dump()
|
||||||
payload = GroupRecipeActionPayload(action=recipe_action, content=recipe)
|
payload["scaled_amount"] = scaled_amount
|
||||||
bg_tasks.add_task(
|
bg_tasks.add_task(
|
||||||
task_action,
|
task_action,
|
||||||
url=recipe_action.url,
|
url=recipe_action.url,
|
||||||
json=jsonable_encoder(payload.model_dump()),
|
json=jsonable_encoder(payload),
|
||||||
timeout=15,
|
timeout=15,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue