1
0
Fork 0
mirror of synced 2024-06-29 11:40:45 +12:00

Merge pull request #3184 from appwrite/fix-team-user

Fix: Team User Creation
This commit is contained in:
Torsten Dittmann 2022-05-08 16:47:01 +02:00 committed by GitHub
commit 9c88906c7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -323,6 +323,7 @@ App::post('/v1/teams/:teamId/memberships')
'tokens' => [],
'memberships' => null,
'search' => implode(' ', [$userId, $email, $name]),
'deleted' => false
])));
} catch (Duplicate $th) {
throw new Exception('Account already exists', 409, Exception::USER_ALREADY_EXISTS);