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