Skip to content

Commit

Permalink
fix id
Browse files Browse the repository at this point in the history
  • Loading branch information
sansan88 committed Aug 13, 2024
1 parent 61f2e20 commit 1dd2c8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/src/scheduler/utils/update.swissunihockey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ export async function updateGamesSwissunihockey(): Promise<any> {
}
}

// Get rankings
if (gamesData.docs.length > 0) {
// Get rankings (only if there are games available)
if (gamesData && gamesData.docs) {
const teamRankings = await resolversSU.Team.rankings({id: `${team.id}`}, {}, {}, {});
console.log(" >> READ TEAM RANKINGS");
for (const item of teamRankings) {
Expand Down

0 comments on commit 1dd2c8b

Please sign in to comment.