chore: issue comment PATCH changes (#3850)

This commit is contained in:
Bavisetti Narayan
2024-03-01 13:33:23 +05:30
committed by GitHub
parent e6f33eb262
commit bc6e48fcd6

View File

@@ -716,9 +716,9 @@ class IssueCommentAPIEndpoint(WebhookMixin, BaseAPIView):
# Validation check if the issue already exists
if (
str(request.data.get("external_id"))
request.data.get("external_id")
and (issue_comment.external_id != str(request.data.get("external_id")))
and Issue.objects.filter(
and IssueComment.objects.filter(
project_id=project_id,
workspace__slug=slug,
external_source=request.data.get(