Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
beingmattlevy committed Oct 5, 2024
1 parent 73baea3 commit d35e277
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/controllers/payments_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,13 @@ def sent
private

def mark_payment_completed
begin
@payment.request_completed
flash.now[:notice] = 'Payment has been received and marked as completed.'
@payment.request_completed
flash.now[:notice] = 'Payment has been received and marked as completed.'

rescue StandardError => e
Rails.logger.error("#mark_payment_completed() => error marking payment as received: #{e.message}")
flash.now[:error] = "ERROR: #{e.message}"
render_flash(flash)
end
end

def ticket_request_id
Expand Down

0 comments on commit d35e277

Please sign in to comment.