Commit 54c2a9b6 authored by James Lopez's avatar James Lopez

refactor services

parent ca559099
......@@ -3,7 +3,7 @@ module Emails
prepend EE::Emails::DestroyService
def execute
Email.find_by_email!(@email).destroy && update_secondary_emails!
update_secondary_emails! if Email.find_by_email!(@email).destroy
end
private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment