mirror of
https://github.com/ENSL/ensl_gathers.git
synced 2024-11-09 23:02:11 +00:00
Fixed a type that prevented proper error checking in api response
This commit is contained in:
parent
41e4dfa480
commit
b7ede26384
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ class HiveClient {
|
|||
return request({
|
||||
url: `https://api.steampowered.com/ISteamUserStats/GetUserStatsForGame/v2/?key=${config.steam.api_key}&steamid=${user.steam.id}&appid=4920`,
|
||||
json: true
|
||||
}, (error, _response, stats) => {
|
||||
}, (error, response, stats) => {
|
||||
if (response.statusCode !== 200) {
|
||||
return callback(error, null);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue