#1340 : Fix when session received is not an array, but the direct object
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user