send phone invite only if email is empty

This commit is contained in:
Damodar Lohani
2023-01-09 10:59:28 +00:00
parent 34b2280207
commit a2642ecc67
+1 -3
View File
@@ -475,9 +475,7 @@ App::post('/v1/teams/:teamId/memberships')
->setUser($user)
->trigger()
;
}
if (!empty($phone)) {
} else if (!empty($phone)) {
$messaging
->setRecipient($phone)
->setMessage($url)