Skip to content

Commit

Permalink
update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ihsangan committed May 9, 2024
1 parent 1eae1fd commit 83128a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ async function serveResult(request) {
let dc = new URL(request.url).searchParams.get('decode')
let code = 200
let result = await callAPI(request)
if (result.includes(`"undef`)){
result = `{"success":false,"message":"Cannot find nickname from your request."}`
}
if (JSON.parse(result).success == false) {
code = 400
}
Expand Down

0 comments on commit 83128a7

Please sign in to comment.