fix: work item assignee update validation (#6704)

This commit is contained in:
Prateek Shourya 2025-03-05 17:42:09 +05:30 committed by GitHub
parent ac6fef3073
commit f01d82ad1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -217,7 +217,7 @@ class IssueCreateSerializer(BaseSerializer):
updated_by_id = instance.updated_by_id
valid_assignee_ids = self.get_valid_assignees(assignees, project_id)
if valid_assignee_ids is not None and len(valid_assignee_ids):
if valid_assignee_ids is not None:
IssueAssignee.objects.filter(issue=instance).delete()
try:
IssueAssignee.objects.bulk_create(