mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
update CH session logic
This commit is contained in:
parent
8471db695b
commit
5cfee79b01
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue