dev: fix the issues check

This commit is contained in:
pablohashescobar 2024-02-19 19:40:25 +05:30
parent 7a0a12f164
commit 27cc4c8f9b

View File

@ -90,7 +90,7 @@ class IssueListEndpoint(BaseAPIView):
def post(self, request, slug, project_id): def post(self, request, slug, project_id):
issues = request.data.get("issues", []) issues = request.data.get("issues", [])
if issues: if not issues:
return Response( return Response(
{"error": "Issues are required"}, {"error": "Issues are required"},
status=status.HTTP_400_BAD_REQUEST, status=status.HTTP_400_BAD_REQUEST,