diff --git a/app/controllers/repp/v1/white_ips_controller.rb b/app/controllers/repp/v1/white_ips_controller.rb index beb3cde03..c7ab1dc84 100644 --- a/app/controllers/repp/v1/white_ips_controller.rb +++ b/app/controllers/repp/v1/white_ips_controller.rb @@ -58,7 +58,7 @@ module Repp return end - uncommit_and_notify_admins(ip: ip, action: 'deleted') if ip.interfaces.include?(WhiteIp::API) + uncommit_and_notify_admins(ip: ip, action: 'deleted') if api_interface?(ip) render_success end diff --git a/app/views/mailers/white_ip_mailer/api_ip_address_deleted.html.erb b/app/views/mailers/white_ip_mailer/api_ip_address_deleted.html.erb index 789d79bb5..fe558d5e4 100644 --- a/app/views/mailers/white_ip_mailer/api_ip_address_deleted.html.erb +++ b/app/views/mailers/white_ip_mailer/api_ip_address_deleted.html.erb @@ -1,6 +1,7 @@

This email is to inform you that an API Whitelisted IP address was deleted by Registrar Portal API user. Please review the details below: