dev: fix watching notification

This commit is contained in:
pablohashescobar 2023-07-11 16:12:07 +05:30
parent 7b2212ea91
commit 79f34b8984

View File

@ -62,7 +62,7 @@ class NotificationViewSet(BaseViewSet):
# Subscribed issues
if type == "watching":
issue_ids = IssueSubscriber.objects.filter(
workspace__slug=slug, subsriber_id=request.user.id
workspace__slug=slug, subscriber_id=request.user.id
).values_list("issue_id", flat=True)
notifications = notifications.filter(entity_identifier__in=issue_ids)