Skip to content

Commit

Permalink
fix NameError in #create_or_update_student
Browse files Browse the repository at this point in the history
  • Loading branch information
Eschults committed Jan 29, 2024
1 parent 75f1a3e commit 01e249f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/edusign/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def update_student(student_uid:, first_name:, last_name:, email:, group_uids: []
def create_or_update_student(first_name:, last_name:, email:, student_uid: nil, group_uids: [])
@student = student_by_uid(student_uid: student_uid) if student_uid.present?
@student = student_by_email(email: email) if @student.nil?
raise Response::Error, "Student doesn't exist" if student.nil?
raise Response::Error, "Student doesn't exist" if @student.nil?
raise Response::Error, "Student was deleted from edusign" if @student[:HIDDEN] == 1

update_student(student_uid: @student[:ID], first_name: first_name, last_name: last_name, email: email, group_uids: group_uids)
Expand Down

0 comments on commit 01e249f

Please sign in to comment.