1
0
Fork 0
mirror of synced 2024-09-29 08:51:28 +13:00

Merge branch 'feat-database-indexing' into feat-custom-id

This commit is contained in:
Damodar Lohani 2021-07-25 17:23:27 +05:45
commit a20bf4171e

View file

@ -508,13 +508,8 @@ App::setResource('user', function($mode, $project, $console, $request, $response
$user = $dbForInternal->getDocument('users', $jwtUserId);
}
<<<<<<< HEAD
if (empty($user->find('$id', $jwtSessionId, 'sessions'))) { // Match JWT to active token
$user = new Document2(['$id' => '', '$collection' => 'users']);
=======
if (empty($user->search('$id', $jwtSessionId, $user->getAttribute('sessions')))) { // Match JWT to active token
$user = new Document(['$id' => '', '$collection' => Database::SYSTEM_COLLECTION_USERS]);
>>>>>>> 7fb7f1073fb00964bb64c45408a052524d6a9584
}
}