mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-25 02:36:20 +01:00
#1340 : Fix when session received is not an array, but the direct object
This commit is contained in:
parent
bcabc25300
commit
5ef979d61d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user