🐛 Fix crash when trying to renew session

This commit is contained in:
2023-06-02 14:23:40 +02:00
parent 8d910118f7
commit 54fa25f3dd

View File

@ -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,