fix: removed draft notifications

This commit is contained in:
NarayanBavisetti 2023-09-14 20:16:40 +05:30
parent eda4da8aed
commit f18e1e4023
2 changed files with 7 additions and 1 deletions

View File

@ -1197,7 +1197,7 @@ class WorkspaceUserActivityEndpoint(BaseAPIView):
projects = request.query_params.getlist("project", [])
queryset = IssueActivity.objects.filter(
~Q(field__in=["comment", "vote", "reaction"]),
~Q(field__in=["comment", "vote", "reaction", "draft"]),
workspace__slug=slug,
project__project_projectmember__member=request.user,
actor=user_id,

View File

@ -1181,6 +1181,9 @@ def issue_activity(
"comment_reaction.activity.deleted",
"issue_vote.activity.created",
"issue_vote.activity.deleted",
"issue_draft.activity.created",
"issue_draft.activity.updated",
"issue_draft.activity.deleted",
]:
issue = Issue.objects.filter(pk=issue_id).first()
@ -1272,6 +1275,9 @@ def issue_activity(
"comment_reaction.activity.deleted",
"issue_vote.activity.created",
"issue_vote.activity.deleted",
"issue_draft.activity.created",
"issue_draft.activity.updated",
"issue_draft.activity.deleted",
]:
# Create Notifications
bulk_notifications = []