chore: restrict email notifications for removed users (#6100)

This commit is contained in:
Bavisetti Narayan 2024-11-27 15:06:55 +05:30 committed by GitHub
parent 05d3e3ae45
commit 1420b7e7d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 26 additions and 8 deletions

View file

@ -353,6 +353,7 @@ class ExportWorkspaceUserActivityEndpoint(BaseAPIView):
workspace__slug=slug,
created_at__date=request.data.get("date"),
project__project_projectmember__member=request.user,
project__project_projectmember__is_active=True,
actor_id=user_id,
).select_related("actor", "workspace", "issue", "project")[:10000]