Update app/controllers/api/account.php
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
This commit is contained in:
parent
8346710d4f
commit
5bdebe55d7
|
@ -799,7 +799,7 @@ App::put('/v1/account/sessions/magic-url')
|
|||
/** @var Appwrite\Database\Database $projectDB */
|
||||
/** @var Appwrite\Event\Event $audits */
|
||||
|
||||
$profile = $projectDB->getCollectionFirst([ // Get user by email address
|
||||
$profile = $projectDB->getCollectionFirst([ // Get user by user ID
|
||||
'limit' => 1,
|
||||
'filters' => [
|
||||
'$collection='.Database::SYSTEM_COLLECTION_USERS,
|
||||
|
|
Loading…
Reference in a new issue