This commit is contained in:
j3d1 2024-05-04 00:47:32 +02:00
parent 283f30faa5
commit 5f5a2f008d

View file

@ -43,8 +43,7 @@ class NotificationDispatcher:
@database_sync_to_async
def get_ticket(self, ticket_id):
return IssueThread.objects.filter(id=ticket_id).select_related('event').prefetch_related('state_changes',
'assignments').first()
return IssueThread.objects.filter(id=ticket_id).select_related('event').first()
async def run_forever(self):
# Infinite loop to continuously listen for messages