stash
This commit is contained in:
parent
7e81ef133e
commit
45f92f8885
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue