fix: subscribed issues are filtering (#2037)

This commit is contained in:
Nikhil 2023-08-31 19:07:56 +05:30 committed by GitHub
parent af929ab741
commit b496a62540
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -337,7 +337,7 @@ class UserWorkSpaceIssues(BaseAPIView):
issue_queryset = ( issue_queryset = (
Issue.issue_objects.filter( Issue.issue_objects.filter(
(Q(assignees__in=[request.user]) | Q(created_by=request.user)), (Q(assignees__in=[request.user]) | Q(created_by=request.user) | Q(issue_subscribers__subscriber=request.user)),
workspace__slug=slug, workspace__slug=slug,
) )
.annotate( .annotate(