🐛 Fix crash when trying to renew session
This commit is contained in:
@ -30,6 +30,9 @@ async function isLoggedIn(req) {
|
||||
}
|
||||
|
||||
async function renewSession(session) {
|
||||
// Don't try to renew sessions if auth is disabled
|
||||
if (session === true) return;
|
||||
|
||||
await prisma.session.update({
|
||||
where: {
|
||||
token: session.token,
|
||||
|
Reference in New Issue
Block a user