From 51fba04226b4b406bfc3b793eecc8331a8394306 Mon Sep 17 00:00:00 2001 From: sriram veeraghanta Date: Tue, 27 Aug 2024 16:58:42 +0530 Subject: [PATCH] fix: intake issue bugfixes on external apis --- apiserver/plane/api/views/inbox.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/apiserver/plane/api/views/inbox.py b/apiserver/plane/api/views/inbox.py index e4e9b765d..d6bd13fa8 100644 --- a/apiserver/plane/api/views/inbox.py +++ b/apiserver/plane/api/views/inbox.py @@ -1,7 +1,7 @@ # Python imports import json -# Django improts +# Django imports from django.core.serializers.json import DjangoJSONEncoder from django.utils import timezone from django.db.models import Q, Value, UUIDField @@ -184,13 +184,8 @@ class InboxIssueAPIEndpoint(BaseAPIView): workspace__slug=slug, project_id=project_id ).first() - project = Project.objects.get( - workspace__slug=slug, - pk=project_id, - ) - # Inbox view - if inbox is None and not project.inbox_view: + if inbox is None: return Response( { "error": "Inbox is not enabled for this project enable it through the project's api"