From 5e77b5640277ec3ea774d6f25d0253c867756e7a Mon Sep 17 00:00:00 2001 From: Duncan <52967253+dunkOnIT@users.noreply.github.com> Date: Tue, 27 Aug 2024 11:20:50 +0200 Subject: [PATCH] dont email if statuses are the same (#655) --- app/controllers/registration_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/registration_controller.rb b/app/controllers/registration_controller.rb index 1589129d..c72e10f9 100644 --- a/app/controllers/registration_controller.rb +++ b/app/controllers/registration_controller.rb @@ -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