Skip to content

Commit

Permalink
chore: pick first inbox issue
Browse files Browse the repository at this point in the history
  • Loading branch information
NarayanBavisetti committed Sep 18, 2024
1 parent 6befc6e commit 862fdc6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apiserver/plane/app/views/inbox/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,10 @@ def get_queryset(self):

@allow_permission([ROLE.ADMIN, ROLE.MEMBER, ROLE.GUEST])
def list(self, request, slug, project_id):
inbox_id = Inbox.objects.get(
inbox_id = Inbox.objects.filter(
workspace__slug=slug, project_id=project_id
)
project = Project.objects.get(pk=project_id)
).first()
project = Project.objects.get(pk=project_id)
filters = issue_filters(request.GET, "GET", "issue__")
inbox_issue = (
InboxIssue.objects.filter(
Expand Down Expand Up @@ -527,9 +527,9 @@ def partial_update(self, request, slug, project_id, pk):
model=Issue,
)
def retrieve(self, request, slug, project_id, pk):
inbox_id = Inbox.objects.get(
inbox_id = Inbox.objects.filter(
workspace__slug=slug, project_id=project_id
)
).first()
project = Project.objects.get(pk=project_id)
inbox_issue = (
InboxIssue.objects.select_related("issue")
Expand Down

0 comments on commit 862fdc6

Please sign in to comment.