|
|
@ -10,6 +10,8 @@ class Admins::UpdateUserService < ApplicationService
|
|
|
|
|
|
|
|
|
|
|
|
def call
|
|
|
|
def call
|
|
|
|
user.assign_attributes(user_attributes)
|
|
|
|
user.assign_attributes(user_attributes)
|
|
|
|
|
|
|
|
user.mail = params[:mail].to_s.presence
|
|
|
|
|
|
|
|
user.phone = params[:phone].to_s.presence
|
|
|
|
user.firstname = ''
|
|
|
|
user.firstname = ''
|
|
|
|
user.password = params[:password] if params[:password].present?
|
|
|
|
user.password = params[:password] if params[:password].present?
|
|
|
|
|
|
|
|
|
|
|
|