stash
This commit is contained in:
parent
666d4be65b
commit
c9117bd6b7
1 changed files with 2 additions and 1 deletions
|
@ -43,7 +43,8 @@ class NotificationDispatcher:
|
|||
|
||||
@database_sync_to_async
|
||||
def get_ticket(self, ticket_id):
|
||||
return IssueThread.objects.get(id=ticket_id).prefetch_related('event')
|
||||
return IssueThread.objects.filter(id=ticket_id).select_related('event').prefetch_related('state_changes',
|
||||
'assignments').first()
|
||||
|
||||
async def run_forever(self):
|
||||
# Infinite loop to continuously listen for messages
|
||||
|
|
Loading…
Reference in a new issue