chore: remove exists checks (#6086)

This commit is contained in:
Nikhil
2024-11-22 17:00:20 +05:30
committed by GitHub
parent 1a6ec7034a
commit 86f8743ade

View File

@@ -65,12 +65,6 @@ class Command(BaseCommand):
).exists():
raise CommandError("User not member in workspace")
# Check if the user is already a member of the project
if ProjectMember.objects.filter(
project=project, member=user, is_active=True
).exists():
raise CommandError("User already a member of the project")
# Get the smallest sort order
smallest_sort_order = (
ProjectMember.objects.filter(