Skip to content

Commit

Permalink
chore: fixed refactor errors
Browse files Browse the repository at this point in the history
  • Loading branch information
brwali committed Oct 27, 2024
1 parent a3855e8 commit 1d1216e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/controllers/impersonate_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def impersonate

def real_user(username)
if User.anonymized_view?(session[:ip])
user = User.real_user_from_anonymized_name(username)
user = User.real_user_from_anonymized_username(username)
else
user = User.find_by(username: username)
end
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/invitations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def create_utility
prepared_mail = MailerHelper.send_mail_to_user(@user, 'Invitation Received on Expertiza', 'invite_participant_to_team', '')
prepared_mail.deliver
end
ExpertizaLogger.info LoggerMessage.new(controller_name, @student.username, "Successfully invited student #{@user.id}", request)
ExpertizaLogger.info LoggerMessage.new(controller_name, @student.name, "Successfully invited student #{@user.id}", request)
end

def check_user_before_invitation
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/conference_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_redirect_url_link
end

def create_author
params[:user][:name] = params[:user][:email] unless !params[:user][:name].nil? && !params[:user][:name].empty?
params[:user][:username] = params[:user][:email] unless !params[:user][:name].nil? && !params[:user][:name].empty?
is_author = true
# Assign all user params for creating author using assign_user_params function
@user = assign_user_params(is_author)
Expand Down

0 comments on commit 1d1216e

Please sign in to comment.