Skip to content

Commit b8677c6

Browse files
committed
WIP: Normalize params in create_school_student
Should this happen here, or at the callsite of this method?
1 parent 46b24fe commit b8677c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/profile_api_client.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ def create_school_student(token:, username:, password:, name:, school:)
161161
response = connection.post("/api/v1/schools/#{school.id}/students") do |request|
162162
apply_default_headers(request, token)
163163
request.body = [{
164-
name:,
165-
username:,
166-
password:
164+
name: name.strip,
165+
username: username.strip,
166+
password: password.strip
167167
}].to_json
168168
end
169169

0 commit comments

Comments
 (0)