diff --git a/lib/session.js b/lib/session.js index 4e0513b1..d8b66e54 100644 --- a/lib/session.js +++ b/lib/session.js @@ -37,7 +37,7 @@ export async function getSession(req) { let session = await getSessionByUuid(session_uuid); - session = Array.isArray(session) && session[0] ? session[0] : null; + session = Array.isArray(session) && session[0] ? session[0] : session; if (!session) { try {