Skip to content

Commit

Permalink
Send emails to organizer and attendee upon registration (thewca#10296)
Browse files Browse the repository at this point in the history
* added mailer job but untested

* fixed new registration emails
  • Loading branch information
dunkOnIT authored Nov 21, 2024
1 parent 4775c94 commit fc9b6ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/registrations/lanes/competing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ def self.process!(lane_params, user_id, competition_id)
changes = registration.changes.transform_values { |change| change[1] }
changes[:event_ids] = lane_params[:competing][:event_ids]
registration.save!
RegistrationsMailer.notify_organizers_of_new_registration(registration).deliver_later
RegistrationsMailer.notify_registrant_of_new_registration(registration).deliver_later
registration.add_history_entry(changes, "worker", user_id, "Worker processed")
end

Expand Down

0 comments on commit fc9b6ae

Please sign in to comment.