Skip to content

Commit

Permalink
Merge pull request #856 from johnson-oragui/fix/organization-creation-v1
Browse files Browse the repository at this point in the history
fix: fixed organization name duplication after user registration
  • Loading branch information
CodewithSegNet authored Aug 11, 2024
2 parents 1186e85 + 03ffe2f commit 6cc0519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1/routes/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def register(background_tasks: BackgroundTasks, response: Response, user_schema:

# create an organization for the user
org = CreateUpdateOrganisation(
name=f"{user.first_name}'s Organisation",
name=f"{user.email}'s Organisation",
email=user.email
)
user_org = organisation_service.create(db=db, schema=org, user=user)
Expand Down

0 comments on commit 6cc0519

Please sign in to comment.