Skip to content

Commit

Permalink
remove limiter
Browse files Browse the repository at this point in the history
  • Loading branch information
beingmattlevy committed Sep 11, 2024
1 parent 0c8d368 commit dbcc576
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions app/controllers/ticket_requests_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,11 @@ def email_ticket_holders
subject = params[:subject].strip
body = params[:body].strip
counter = 0
limit = 1

@event.ticket_requests.active.find_each do |ticket_request|
Rails.logger.debug { "email_ticket_holders: sending reminder for ticket request: #{ticket_request.inspect}" }
TicketRequestMailer.email_ticket_holder(ticket_request, subject, body).deliver_later
counter += 1
break if counter >= limit
end

Rails.logger.debug { "email_ticket_holders: counter: #{counter}" }
Expand Down

0 comments on commit dbcc576

Please sign in to comment.