Skip to content

Commit

Permalink
Merge branch 'feature/add-project-filter-in-sector-endpoint' of https…
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslinhares committed Oct 28, 2024
2 parents 121f2c2 + b0c6eba commit 2dd0b86
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 2dd0b86

Please sign in to comment.