Commit 66759807 authored by James Lopez's avatar James Lopez

refactor code

parent d5886465
...@@ -4,11 +4,9 @@ module EE ...@@ -4,11 +4,9 @@ module EE
include ::EE::Emails::BaseService include ::EE::Emails::BaseService
def execute def execute
email = super super.tap do |email|
log_audit_event(action: :create) if email.persisted? log_audit_event(action: :create) if email.persisted?
end
email
end end
end end
end end
......
...@@ -4,11 +4,9 @@ module EE ...@@ -4,11 +4,9 @@ module EE
include ::EE::Emails::BaseService include ::EE::Emails::BaseService
def execute def execute
result = super super.tap do
log_audit_event(action: :destroy) log_audit_event(action: :destroy)
end
result
end end
end end
end end
......
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