mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 22:43:34 -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."),
|
||||
) from e
|
||||
|
||||
recipe.scaled_amount = scaled_amount
|
||||
payload = GroupRecipeActionPayload(action=recipe_action, content=recipe)
|
||||
payload = GroupRecipeActionPayload(action=recipe_action, content=recipe).model_dump()
|
||||
payload["scaled_amount"] = scaled_amount
|
||||
bg_tasks.add_task(
|
||||
task_action,
|
||||
url=recipe_action.url,
|
||||
json=jsonable_encoder(payload.model_dump()),
|
||||
json=jsonable_encoder(payload),
|
||||
timeout=15,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue