mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
don't overwrite the test body if there is one
This commit is contained in:
parent
22376466d5
commit
824aaddfdb
1 changed files with 2 additions and 1 deletions
|
@ -158,7 +158,8 @@ class WebhookEventListener(EventListenerBase):
|
||||||
webhook_data.webhook_body = meal_data or None
|
webhook_data.webhook_body = meal_data or None
|
||||||
case _:
|
case _:
|
||||||
if event.event_type is EventTypes.test_message:
|
if event.event_type is EventTypes.test_message:
|
||||||
webhook_data.webhook_body = []
|
# make sure the webhook has a valid body so it gets sent
|
||||||
|
webhook_data.webhook_body = webhook_data.webhook_body or []
|
||||||
|
|
||||||
# Only publish to subscribers if we have a webhook body to send
|
# Only publish to subscribers if we have a webhook body to send
|
||||||
if webhook_data.webhook_body is not None:
|
if webhook_data.webhook_body is not None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue