Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

Commit

Permalink
Rollback encoding (patch)
Browse files Browse the repository at this point in the history
  • Loading branch information
zrrrzzt committed Sep 27, 2019
1 parent caf33cd commit 42d4672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/handle-students.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = async query => {
return data
} else if (query.action === 'search') {
logger('info', ['handle-students', 'action', 'search', 'caller', query.caller, 'search', query.data.name])
const url = `${process.env.BUDDY_API}/users/${query.caller}/search/${encodeURIComponent(query.data.name)}`
const url = `${process.env.BUDDY_API}/users/${query.caller}/search/${query.data.name}`
const data = await getData(url)
return data
} else if (query.action === 'contactteachers') {
Expand Down

0 comments on commit 42d4672

Please sign in to comment.