From 45f92f88857b0c5f0dbcf34cec44c4d454c37105 Mon Sep 17 00:00:00 2001 From: jedi Date: Sat, 4 May 2024 00:10:38 +0200 Subject: [PATCH] stash --- core/notifications/dispatch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/notifications/dispatch.py b/core/notifications/dispatch.py index 389535e..0f77018 100644 --- a/core/notifications/dispatch.py +++ b/core/notifications/dispatch.py @@ -64,7 +64,7 @@ class NotificationDispatcher: print("Error: Invalid message format") async def dispatch(self, ticket, event_id, new): - message = database_sync_to_async(render_notification_new_ticket)(ticket) if new else database_sync_to_async( + message = await database_sync_to_async(render_notification_new_ticket)(ticket) if new else await database_sync_to_async( render_notification_reply_ticket)(ticket) print("Dispatching message:", message, "with event_id:", event_id) targets = await self.get_notification_targets()