Skip to content

Commit

Permalink
hotfix: fix mass stuck duplicate registrations
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnIckler committed Dec 9, 2024
1 parent a14dd54 commit 67d874a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/jobs/add_registration_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ def self.prepare_task(user_id, competition_id)
end

def perform(lane_name, competition_id, user_id, lane_params)
# Hotfix for mass stuck duplicate registrations in the queue
registration = Registration.find_by(competition_id: competition_id, user_id: user_id)
return if registration.present?

lane_model_name = lane_name.upcase_first

lane = Registrations::Lanes.class_eval(lane_model_name)
Expand Down

0 comments on commit 67d874a

Please sign in to comment.