Fixed a type that prevented proper error checking in api response

This commit is contained in:
Absurdon 2023-03-10 16:33:42 +00:00
parent 41e4dfa480
commit b7ede26384

View file

@ -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);
}