Skip to content

Commit

Permalink
fix logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfagun74 committed May 6, 2024
1 parent 18014ed commit cb5a536
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/modules/providers/rawg/rawg.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,19 +163,11 @@ export class RawgService {
): Promise<RawgGame> {
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);
Expand Down

0 comments on commit cb5a536

Please sign in to comment.