Skip to content

Commit

Permalink
Add project_uuid filter in TicketerQueueViewSet
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslinhares committed Oct 28, 2024
1 parent 899af48 commit b0c6eba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion weni/internal/tickets/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ class TicketerQueueViewSet(
@property
def _ticketer(self):
sector_uuid = self.kwargs.get("ticketer_uuid")
project_uuid = self.request.data.get("project_uuid")
return get_object_or_404(
Ticketer, is_active=True, config__sector_uuid=sector_uuid
Ticketer, is_active=True, config__sector_uuid=sector_uuid, org__proj_uuid=project_uuid
)

def get_queryset(self):
Expand Down

0 comments on commit b0c6eba

Please sign in to comment.