Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

Commit

Permalink
only send emails when status is updated (#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnIckler authored Jul 31, 2024
1 parent 4aec284 commit 89bba96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/registration_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ def process_update(update_request)
Registration.increment_competitors_count(@competition_id)
end

# Don't send email if we only change the waiting list position
if waiting_list_position.blank?
# Only send emails when we update the competing status
if status.present?
EmailApi.send_update_email(@competition_id, user_id, status, @current_user)
end

Expand Down

0 comments on commit 89bba96

Please sign in to comment.