Skip to content

Commit

Permalink
update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ihsangan committed Jun 7, 2024
1 parent 1503224 commit edc23f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ async function serveResult(request) {
if (result.includes(`"undefined"`)) {
result = `{"success":false,"message":"Cannot find nickname from your request."}`
}
if (JSON.parse(JSON.parse(result)).success == false) {
if (result.success == false) {
code = 400
}
result = result.replace(/\u002B/g, '%20')
Expand Down

0 comments on commit edc23f0

Please sign in to comment.