mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-09 20:12:10 +10:00
fix issue in igdb where company isn't found
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -2,3 +2,4 @@
|
|||||||
/.yarn/releases/* binary
|
/.yarn/releases/* binary
|
||||||
/.yarn/plugins/**/* binary
|
/.yarn/plugins/**/* binary
|
||||||
/.pnp.* binary linguist-generated
|
/.pnp.* binary linguist-generated
|
||||||
|
* text=auto eol=lf
|
||||||
|
|||||||
@ -319,9 +319,6 @@ export class IGDBProvider implements MetadataProvider {
|
|||||||
for (const company of find_company_response) {
|
for (const company of find_company_response) {
|
||||||
// if company was a dev or publisher
|
// if company was a dev or publisher
|
||||||
// CANNOT use else since a company can be both
|
// CANNOT use else since a company can be both
|
||||||
|
|
||||||
// TODO: why did this call manual metadata???
|
|
||||||
|
|
||||||
if (found_involed.developer)
|
if (found_involed.developer)
|
||||||
developers.push(await developer(company.name));
|
developers.push(await developer(company.name));
|
||||||
if (found_involed.publisher)
|
if (found_involed.publisher)
|
||||||
@ -358,7 +355,7 @@ export class IGDBProvider implements MetadataProvider {
|
|||||||
}: _FetchPublisherMetadataParams): Promise<PublisherMetadata> {
|
}: _FetchPublisherMetadataParams): Promise<PublisherMetadata> {
|
||||||
const response = await this.request<IGDBCompany>(
|
const response = await this.request<IGDBCompany>(
|
||||||
"companies",
|
"companies",
|
||||||
`search "${query}"; fields *;`
|
`where name = "${query}"; fields *; limit 1;`
|
||||||
);
|
);
|
||||||
|
|
||||||
for (const company of response) {
|
for (const company of response) {
|
||||||
|
|||||||
Reference in New Issue
Block a user