From 93fbf7657d70dc3e67f01a372c099c54161da304 Mon Sep 17 00:00:00 2001 From: Chubby Granny Chaser Date: Mon, 2 Dec 2024 18:15:45 +0000 Subject: [PATCH] fix: returning hydra api call directly --- src/main/events/catalogue/get-how-long-to-beat.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/main/events/catalogue/get-how-long-to-beat.ts b/src/main/events/catalogue/get-how-long-to-beat.ts index fab5677f..2a1492ef 100644 --- a/src/main/events/catalogue/get-how-long-to-beat.ts +++ b/src/main/events/catalogue/get-how-long-to-beat.ts @@ -13,15 +13,9 @@ const getHowLongToBeat = async ( shop, }); - const response = await HydraApi.get( - `/games/how-long-to-beat?${params.toString()}`, - null, - { - needsAuth: false, - } - ); - - return response; + return HydraApi.get(`/games/how-long-to-beat?${params.toString()}`, null, { + needsAuth: false, + }); }; registerEvent("getHowLongToBeat", getHowLongToBeat);