Skip to content

Commit

Permalink
Fix create invite redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
nid90 committed Mar 13, 2024
1 parent a86a776 commit 0063b19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/controllers/accounts/invitations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ def create
end
rescue Postmark::ApiInputError
flash[:error] = "Sorry, there was a delivery error while sending the invite!"
redirect_to accounts_organization_team_path(current_organization)
redirect_to accounts_organization_teams_path(current_organization)
end

redirect_to accounts_organization_team_path(current_organization),
redirect_to accounts_organization_teams_path(current_organization),
notice: "Sent an invite to #{@invite.email}!"
else
redirect_to accounts_organization_team_path(current_organization),
redirect_to accounts_organization_teams_path(current_organization),
notice: "Failed to send an invite to #{@invite.email}!"
end
end
Expand Down
2 changes: 1 addition & 1 deletion db/data_schema.rb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
DataMigrate::Data.define(version: 20240308103222)
DataMigrate::Data.define(version: 20240308115260)

0 comments on commit 0063b19

Please sign in to comment.