1
0
Fork 0
mirror of synced 2024-06-02 02:44:47 +12:00

Update app/controllers/api/account.php

Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
This commit is contained in:
Torsten Dittmann 2021-09-01 09:23:08 +02:00 committed by GitHub
parent 8346710d4f
commit 5bdebe55d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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