Skip to content

Commit 85c16de

Browse files
authored
Fix user social binding query (#344)
1 parent 9aa74af commit 85c16de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/app/admin/service/oauth2_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async def create_with_login(
4949
await db.flush()
5050
sys_user = await user_dao.check_email(db, _email)
5151
# 绑定社交用户
52-
user_social = await user_social_dao.get(db, sys_user.id, UserSocialType.github)
52+
user_social = await user_social_dao.get(db, sys_user.id, social.value)
5353
if not user_social:
5454
new_user_social = CreateUserSocialParam(source=social.value, uid=str(_id), user_id=sys_user.id)
5555
await user_social_dao.create(db, new_user_social)

0 commit comments

Comments
 (0)