From cb5a536bfef1a1eaedf157a9475597e7e95715e1 Mon Sep 17 00:00:00 2001 From: Alper Alkan Date: Tue, 7 May 2024 00:11:15 +0200 Subject: [PATCH] fix logger --- src/modules/providers/rawg/rawg.service.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/modules/providers/rawg/rawg.service.ts b/src/modules/providers/rawg/rawg.service.ts index c4d7cf3..8d3bab9 100644 --- a/src/modules/providers/rawg/rawg.service.ts +++ b/src/modules/providers/rawg/rawg.service.ts @@ -163,19 +163,11 @@ export class RawgService { ): Promise { const sortedResults = await this.fetchMatching(title, releaseYear); - const matches = sortedResults.map((match) => { - return { - probability: match.probability, - rawg_id: match.id, - rawg_title: match.name, - rawg_release_date: match.released, - }; - }); this.logger.log({ - message: `Found ${matches.length} matches on RAWG.`, + message: `Found ${sortedResults.length} matches on RAWG.`, title, releaseYear, - matches, + sortedResults, }); return this.fetchByRawgId(sortedResults[0].id);