diff --git a/api/auth.js b/api/auth.js index 43a9ded9..f2154f16 100644 --- a/api/auth.js +++ b/api/auth.js @@ -68,6 +68,7 @@ GET.auth.discord = async ({ url }) => { roles: [rolesByKey.student.id, specialities[speciality].id], }, }) + join.reply.ok || console.error('Unable to join discord:', join.reply) user.role = roles.find((r) => join.roles.includes(r.id))?.key || 'student' diff --git a/app.jsx b/app.jsx index 54030577..8adf1e45 100644 --- a/app.jsx +++ b/app.jsx @@ -6,15 +6,15 @@ import { P, divider } from './component/elements.jsx' import { Router } from './lib/router.js' import { Profile } from './page/profile.jsx' import { Home } from './page/home.jsx' -import { Exercise } from './page/exercise.jsx' +import { ModuleHome } from './page/module_home.jsx' const App = () => ( <>
+ -