Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesfize committed Jul 5, 2024
1 parent c8b562d commit e9517d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pypnusershub/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ def insert_or_update_role(
)
).scalar_one()
if user_exists:
if not provider in user_exists.providers:
user = UserSchema().load(UserSchema().dump(user))
if not provider in user.providers:
user.providers.append(provider)
db.session.add(user)
db.session.commit()
Expand Down

0 comments on commit e9517d9

Please sign in to comment.