Skip to content

Commit

Permalink
Remove redundant code as per CR
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaRedHand authored Jun 4, 2024
1 parent aa4720e commit 00bc942
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ def create_group(db: Session, group: schemas.GroupCreate, user_id: int):
# Add the owner to the group members
db_user = get_user_by_id(db, user_id)

db.commit()
db.refresh(db_group)
db_group.members.add(db_user)
db.commit()
db.refresh(db_group)
Expand Down

0 comments on commit 00bc942

Please sign in to comment.