#1340 : Fix when session received is not an array, but the direct object

This commit is contained in:
Kevin Van Ryckegem 2022-07-25 00:44:53 +02:00
parent bcabc25300
commit 5ef979d61d

View File

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