Skip to content

Commit

Permalink
chore: remove exists checks (#6086)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablohashescobar authored Nov 22, 2024
1 parent 1a6ec70 commit 86f8743
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,6 @@ def handle(self, *args: Any, **options: Any):
).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(
Expand Down

0 comments on commit 86f8743

Please sign in to comment.