From 824aaddfdb33619d4ea24aa2accf897b0113fd89 Mon Sep 17 00:00:00 2001 From: Michael Genson <71845777+michael-genson@users.noreply.github.com> Date: Sun, 27 Jul 2025 03:45:44 +0000 Subject: [PATCH] don't overwrite the test body if there is one --- mealie/services/event_bus_service/event_bus_listeners.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mealie/services/event_bus_service/event_bus_listeners.py b/mealie/services/event_bus_service/event_bus_listeners.py index 898076718..9d525f798 100644 --- a/mealie/services/event_bus_service/event_bus_listeners.py +++ b/mealie/services/event_bus_service/event_bus_listeners.py @@ -158,7 +158,8 @@ class WebhookEventListener(EventListenerBase): webhook_data.webhook_body = meal_data or None case _: 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 if webhook_data.webhook_body is not None: