Quick fixes

This commit is contained in:
baz 2025-04-25 17:52:10 +01:00
parent 4ce09185d3
commit e564dedf2c
2 changed files with 6 additions and 3 deletions

View File

@ -116,10 +116,13 @@ async function GetDevelopers() {
const companyIds = new Set(); const companyIds = new Set();
for (let i = 0; i < beatGameIGDBEntries.length; i++) { for (let i = 0; i < beatGameIGDBEntries.length; i++) {
if (beatGameIGDBEntries[i].involved_companies)
{
for (let j = 0; j < beatGameIGDBEntries[i].involved_companies.length; j++) { for (let j = 0; j < beatGameIGDBEntries[i].involved_companies.length; j++) {
companyIds.add(beatGameIGDBEntries[i].involved_companies[j]); companyIds.add(beatGameIGDBEntries[i].involved_companies[j]);
} }
} }
}
const ids = [...companyIds]; const ids = [...companyIds];
const tempIds = []; const tempIds = [];

View File

@ -133,7 +133,7 @@ async function getCompanyInfo(id) {
developer = response[0]; developer = response[0];
}) })
.catch(err => { .catch(err => {
console.error(err); return console.error(err);
}); });
return developer; return developer;