Skip to content

Commit

Permalink
refactor: use Invites::Destroy for deleting account invites
Browse files Browse the repository at this point in the history
  • Loading branch information
kjellberg committed Apr 11, 2024
1 parent 37188bb commit 808087a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def create

def destroy
@invitation = current_account.account_invitations.find_puid!(params[:id])
@invitation.destroy
Kiqr::Services::Invitations::Destroy.call!(invitation: @invitation, user: current_user)
redirect_to account_invitations_path, notice: t(".deleted")
end

Expand Down

0 comments on commit 808087a

Please sign in to comment.