Skip to content

Commit 0194444

Browse files
committed
Add commit to db in outer methods
1 parent ddaa081 commit 0194444

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

auth_backend/auth_method/outer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ async def _link(
189189
if username:
190190
raise UserLinkingConflict(user_id)
191191
param = cls.create_auth_method_param("username", outer.username, user_id, db_session=db.session)
192-
return GetOuterAccount(username=param.value)
192+
result = GetOuterAccount(username=param.value)
193+
db.session.commit()
194+
return result
193195

194196
@classmethod
195197
async def _unlink(

0 commit comments

Comments
 (0)