Skip to content

Commit

Permalink
Use custom team member model (#651)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Jan 25, 2021
1 parent 49a2949 commit 4c6eca0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Http/Livewire/TeamMemberManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ public function addTeamMember()
public function cancelTeamInvitation($invitationId)
{
if (! empty($invitationId)) {
TeamInvitation::whereKey($invitationId)->delete();
$model = Jetstream::teamInvitationModel();

$model::whereKey($invitationId)->delete();
}

$this->team = $this->team->fresh();
Expand Down

0 comments on commit 4c6eca0

Please sign in to comment.