mirror of
https://github.com/kremalicious/umami.git
synced 2024-06-10 11:25:11 +02:00
update CH session logic
This commit is contained in:
parent
8471db695b
commit
5cfee79b01
|
@ -37,8 +37,8 @@ export async function getSession(req) {
|
|||
|
||||
let session = await getSessionByUuid(session_uuid);
|
||||
|
||||
if (Array.isArray(session) && session[0]) {
|
||||
session = session[0];
|
||||
if (Array.isArray(session)) {
|
||||
session = session.length !== 0 ? session[0] : null;
|
||||
}
|
||||
|
||||
if (!session) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user