From b7ede26384ea49f0e020f16519073265dc0ac535 Mon Sep 17 00:00:00 2001 From: Absurdon Date: Fri, 10 Mar 2023 16:33:42 +0000 Subject: [PATCH] Fixed a type that prevented proper error checking in api response --- lib/hive/client.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hive/client.mjs b/lib/hive/client.mjs index 889240e..e5b902c 100644 --- a/lib/hive/client.mjs +++ b/lib/hive/client.mjs @@ -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); }