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 137c1ac commit 2c1edda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ async function callAPI(request) {
const response = await fetch(request)
const data = await response.json()
if (data.success == true) {
let result = `{"success":true,"game":"VALORANT","id":"${id}", "region": "Indonesia", "name":"${data.confirmationFields.username}"}`
let result = `{"success":true,"game":"VALORANT","id":"${id}","region": "Indonesia","name":"${data.confirmationFields.username}"}`
return result
} else if (data.errorCode == -200) {
let result = `{"success":true,"game":"VALORANT","id":"${id}", "region": "unknown", "name":"${data.confirmationFields.userId}"}`
let result = `{"success":true,"game":"VALORANT","id":"${id}","region": "unknown","name":"${data.confirmationFields.userId}"}`
return result
} else {
let result = `{"success":false,"message":"Cannot find nickname from your request."}`
Expand Down

0 comments on commit 2c1edda

Please sign in to comment.