Skip to content

Commit

Permalink
Fixed to use user from registration
Browse files Browse the repository at this point in the history
  • Loading branch information
pranav-027 committed Feb 3, 2025
1 parent c0003b3 commit 5ac8e4b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/registrations/lanes/competing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ def self.process!(lane_params, user_id, competition_id)
registration.save!
RegistrationsMailer.notify_organizers_of_new_registration(registration).deliver_later
RegistrationsMailer.notify_registrant_of_new_registration(registration).deliver_later
user = User.find_by_id(user_id)
if user&.banned_in_past?
if registration.user.banned_in_past?
RegistrationsMailer.notify_delegates_of_formerly_banned_user_registration(registration).deliver_later
end
registration.add_history_entry(changes, "worker", user_id, "Worker processed")
Expand Down

0 comments on commit 5ac8e4b

Please sign in to comment.