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

Commit

Permalink
dont email if statuses are the same (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
dunkOnIT authored Aug 27, 2024
1 parent 0d43dd8 commit 5e77b56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/registration_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def process_update(update_request)
end

# Only send emails when we update the competing status
if status.present?
if status.present? && old_status != status
EmailApi.send_update_email(@competition_id, user_id, status, @current_user)
end

Expand Down

0 comments on commit 5e77b56

Please sign in to comment.