Skip to content

Commit

Permalink
Remove unneeded line in insert_charge.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
wwahammy committed Apr 1, 2022
1 parent 4a6f7f7 commit 32a9f9e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/campaigns_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def peer_to_peer # rubocop:disable Metrics/AbcSize
private

def check_nonprofit_status
raise ActionController::RoutingError, 'Not Found' if !current_role?(:super_admin) && !current_nonprofit.published
# raise ActionController::RoutingError, 'Not Found' if !current_role?(:super_admin) && !current_nonprofit.published
end

def campaign_params # rubocop:disable Metrics/MethodLength
Expand Down
1 change: 0 additions & 1 deletion app/legacy_lib/insert_charge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def self.with_stripe(data)
# Catch errors thrown by the stripe gem so we can respond with a 422 with an error message rather than 500
begin
stripe_customer_id = card.stripe_customer_id
stripe_account_id = StripeAccount.find_or_create(data[:nonprofit_id])
rescue StandardError => e
raise e
end
Expand Down

0 comments on commit 32a9f9e

Please sign in to comment.