fix: url missing for my workspace issues

This commit is contained in:
pablohashescobar 2022-12-13 23:50:14 +05:30
parent 2881f990f5
commit cefea57bd6
2 changed files with 2 additions and 3 deletions

View File

@ -54,8 +54,8 @@ from plane.api.views import (
BulkDeleteIssuesEndpoint,
BulkAssignIssuesToCycleEndpoint,
ProjectUserViewsEndpoint,
UserWorkSpaceIssues,
UserLastProjectWithWorkspaceEndpoint,
UserWorkSpaceIssues,
)
from plane.api.views.project import AddTeamToProjectEndpoint
@ -496,7 +496,7 @@ urlpatterns = [
BulkDeleteIssuesEndpoint.as_view(),
),
path(
"workspaces/<str:slug>/me/issues/",
"workspaces/<str:slug>/my-issues/",
UserWorkSpaceIssues.as_view(),
name="workspace-issues",
),

View File

@ -163,7 +163,6 @@ class IssueViewSet(BaseViewSet):
class UserWorkSpaceIssues(BaseAPIView):
def get(self, request, slug):
try:
print(request.user)
issues = Issue.objects.filter(
assignees__in=[request.user], workspace__slug=slug
)