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

fix bug in emails destroy service

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