From b8b7a9e5204a8f165f715490c020629150b5c04e Mon Sep 17 00:00:00 2001 From: Andrea Stella Date: Fri, 17 May 2024 23:37:55 +0200 Subject: [PATCH] fix: stop casting `released` to number in getGameInfoAndUserProgress.test (#93) --- src/user/getGameInfoAndUserProgress.test.ts | 2 +- src/user/getGameInfoAndUserProgress.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/user/getGameInfoAndUserProgress.test.ts b/src/user/getGameInfoAndUserProgress.test.ts index 6d360ce..03ee518 100644 --- a/src/user/getGameInfoAndUserProgress.test.ts +++ b/src/user/getGameInfoAndUserProgress.test.ts @@ -99,7 +99,7 @@ describe("Function: getGameInfoAndUserProgress", () => { publisher: "Activision ", developer: "David Crane", genre: "Racing", - released: 1980, + released: "1980", isFinal: false, consoleName: "Atari 2600", richPresencePatch: "2b92fa1bf9635c303b3b7f8feea3ed3c", diff --git a/src/user/getGameInfoAndUserProgress.ts b/src/user/getGameInfoAndUserProgress.ts index 12c5396..57e1c88 100644 --- a/src/user/getGameInfoAndUserProgress.ts +++ b/src/user/getGameInfoAndUserProgress.ts @@ -51,7 +51,7 @@ import type { * publisher: "Activision", * developer: "David Crane", * genre: "Racing", - * released: 1980, + * released: "1980", * isFinal: false, * consoleName: "Atari 2600", * richPresencePatch: "2b92fa1bf9635c303b3b7f8feea3ed3c", @@ -113,7 +113,6 @@ export const getGameInfoAndUserProgress = async ( "DisplayOrder", "NumDistinctPlayersCasual", "NumDistinctPlayersHardcore", - "Released", ], }); };