Skip to content

Commit

Permalink
Commit new auth on existing users
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanfranklin committed Jul 3, 2024
1 parent e494165 commit b50b100
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions geoapi/services/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ def getUser(database_session, username: str, tenant: str) -> User:
if user and user.auth is None:
auth = Auth(user_id=user.id)
database_session.add(auth)
database_session.commit()
database_session.refresh(user)
return user

@staticmethod
Expand Down

0 comments on commit b50b100

Please sign in to comment.