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
+1
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);