mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
#1340 : Fix when session received is not an array, but the direct object
This commit is contained in:
parent
bcabc25300
commit
5ef979d61d
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue