This commit is contained in:
jedi 2024-05-04 00:10:38 +02:00
parent 7e81ef133e
commit 45f92f8885

View file

@ -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()