diff --git a/libs/route-utils/index.js b/libs/route-utils/index.js index 40ef207..5657aa6 100644 --- a/libs/route-utils/index.js +++ b/libs/route-utils/index.js @@ -127,7 +127,7 @@ const checkSession = async (c, n) => { if (!('session' in c) || !('user' in c.session) || !('loginType' in c.session)) throw genError('NotLogin') c.state.loginUser = { - name: c.session.loginType === 'twitich' ? c.session.user.login : c.session.user.name, + name: c.session.loginType === 'twitch' ? c.session.user.login : c.session.user.name, type: c.session.loginType }