Merge pull request #1344 from KevinVR/bugfix/duplicate-session

#1340 : Fix when session received is not an array, but the direct object
This commit is contained in:
Mike Cao 2022-07-24 21:58:30 -07:00 committed by GitHub
commit 1cb452b233
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {