Skip to content

Commit

Permalink
Fix a team membership migration bug
Browse files Browse the repository at this point in the history
The create team membership API fails if an invalid email, phone, or
name are supplied. We can get rid of all of those params because the
we can look up the user by user id and user id should always be
available.
  • Loading branch information
stnguyen90 committed Sep 8, 2023
1 parent 45bd831 commit 1f13bef
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Migration/Destinations/Appwrite.php
Original file line number Diff line number Diff line change
Expand Up @@ -576,10 +576,7 @@ public function importAuthResource(Resource $resource): Resource
$resource->getTeam()->getId(),
$resource->getRoles(),
'',
$user->getEmail(),
$user->getId(),
$user->getPhone(),
$user->getName()
userId: $user->getId(),
);
break;
}
Expand Down

0 comments on commit 1f13bef

Please sign in to comment.