mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
fix collection bug
This commit is contained in:
parent
97a774a3fd
commit
8471db695b
1 changed files with 3 additions and 1 deletions
|
|
@ -37,7 +37,9 @@ export async function getSession(req) {
|
|||
|
||||
let session = await getSessionByUuid(session_uuid);
|
||||
|
||||
session = Array.isArray(session) && session[0] ? session[0] : null;
|
||||
if (Array.isArray(session) && session[0]) {
|
||||
session = session[0];
|
||||
}
|
||||
|
||||
if (!session) {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue