Commit 8f2adb80 authored by James Lopez's avatar James Lopez

fix bug in emails destroy service

parent 0925f301
module Emails module Emails
class BaseService class BaseService
def initialize(current_user, user, opts) def initialize(user, opts)
@current_user = current_user
@user = user @user = user
@email = opts[:email] @email = opts[:email]
end end
......
...@@ -7,7 +7,7 @@ module Emails ...@@ -7,7 +7,7 @@ module Emails
private private
def update_secondary_emails! def update_secondary_emails!
result = ::Users::UpdateService.new(@current_user).execute do |user| result = ::Users::UpdateService.new(@user).execute do |user|
user.update_secondary_emails! user.update_secondary_emails!
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