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,8 +116,11 @@ async function GetDevelopers() {
const companyIds = new Set();
for (let i = 0; i < beatGameIGDBEntries.length; i++) {
for (let j = 0; j < beatGameIGDBEntries[i].involved_companies.length; j++) {
companyIds.add(beatGameIGDBEntries[i].involved_companies[j]);
if (beatGameIGDBEntries[i].involved_companies)
{
for (let j = 0; j < beatGameIGDBEntries[i].involved_companies.length; j++) {
companyIds.add(beatGameIGDBEntries[i].involved_companies[j]);
}
}
}

View File

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