Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
reverse changes
  • Loading branch information
magdalenajadach committed Sep 5, 2024
commit 84c7cf9d576fb7631514b37d5660c88ace9afcf1
12 changes: 1 addition & 11 deletions app/controllers/api/school_students_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def update
)

if result.success?
update_student_details(@school)
head :no_content
else
render json: { error: result[:error] }, status: :unprocessable_entity
Expand Down Expand Up @@ -92,15 +91,6 @@ def create_owner_safeguarding_flag
email: current_user.email
)
end

def update_student_details(@school)
ProfileApiClient.update_school_student(
token: current_user.token,
school_id: school.id,
student_id: school_student.id,
name: school_student.name,
username: school_student.username
)
end

end
end