From d1aac181dda1128b0cd88f83481eeea64fcb0885 Mon Sep 17 00:00:00 2001 From: Huskydog9988 <39809509+Huskydog9988@users.noreply.github.com> Date: Wed, 12 Mar 2025 16:08:58 -0400 Subject: [PATCH] fix issue in igdb where company isn't found --- server/.gitattributes | 1 + server/server/internal/metadata/igdb.ts | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/server/.gitattributes b/server/.gitattributes index af3ad128..e3f08fc5 100644 --- a/server/.gitattributes +++ b/server/.gitattributes @@ -2,3 +2,4 @@ /.yarn/releases/* binary /.yarn/plugins/**/* binary /.pnp.* binary linguist-generated +* text=auto eol=lf diff --git a/server/server/internal/metadata/igdb.ts b/server/server/internal/metadata/igdb.ts index c653cb7b..66fdf9d0 100644 --- a/server/server/internal/metadata/igdb.ts +++ b/server/server/internal/metadata/igdb.ts @@ -319,9 +319,6 @@ export class IGDBProvider implements MetadataProvider { for (const company of find_company_response) { // if company was a dev or publisher // CANNOT use else since a company can be both - - // TODO: why did this call manual metadata??? - if (found_involed.developer) developers.push(await developer(company.name)); if (found_involed.publisher) @@ -358,7 +355,7 @@ export class IGDBProvider implements MetadataProvider { }: _FetchPublisherMetadataParams): Promise { const response = await this.request( "companies", - `search "${query}"; fields *;` + `where name = "${query}"; fields *; limit 1;` ); for (const company of response) {