Skip to content

Commit

Permalink
fix: manager messages api
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Nov 20, 2024
1 parent ff756eb commit 29849f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions uniticket/api_rest/views/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ def get(self, request, structure_slug, *args, **kwargs):
ticket_ids = TicketAssignment.objects.filter(
office__organizational_structure=structure,
office__is_active=True,
ticket__is_closed=False,
follow_check=True
).values_list('ticket__pk', flat=True).distinct()
messages = TicketReply.get_unread_messages_count(ticket_ids=ticket_ids)
return Response({'count': messages})

0 comments on commit 29849f1

Please sign in to comment.