core: bug fix

This commit is contained in:
undefined committed 2024-10-13 07:10:00 +08:00
1 parent 6557e68c6f
commit 3cd0105bbf
1 file changed
+1 -1
+1 -1
View File
@@ -457,7 +457,7 @@ class OauthCallbackHandler extends Handler {
break;
}
}
const set: Partial<Udoc> = { oauth: args.type, ...r.set };
const set: Partial<Udoc> = { ...(r.set || {}), oauth: args.type };
if (r.bio) set.bio = r.bio;
if (r.viewLang) set.viewLang = r.viewLang;
if (r.avatar) set.avatar = r.avatar;