chore: user activity endpoint change

This commit is contained in:
NarayanBavisetti 2023-11-23 12:51:52 +05:30
parent 784be47e91
commit 1697554ddd
2 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ urlpatterns = [
name="user-tour",
),
path(
"users/workspaces/<str:slug>/activities/",
"users/me/activities/",
UserActivityEndpoint.as_view(),
name="user-activities",
),

View File

@ -76,9 +76,9 @@ class UpdateUserTourCompletedEndpoint(BaseAPIView):
class UserActivityEndpoint(BaseAPIView, BasePaginator):
def get(self, request, slug):
def get(self, request):
queryset = IssueActivity.objects.filter(
actor=request.user, workspace__slug=slug
actor=request.user
).select_related("actor", "workspace", "issue", "project")
return self.paginate(