fix: intake issue bugfixes on external apis
This commit is contained in:
parent
f39fc3e9ca
commit
51fba04226
1 changed files with 2 additions and 7 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue