Skip to content

Commit

Permalink
flatten result array
Browse files Browse the repository at this point in the history
  • Loading branch information
nimarion committed Mar 23, 2024
1 parent 68798ce commit 6ea645a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/athletes/athletes.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class AthletesController {
}
});
await Promise.all(promises);
return allResults;
return allResults.flat();
}
const results = await this.resultsService.getResultsFromAthlete(id, year);
if (!results) {
Expand Down

0 comments on commit 6ea645a

Please sign in to comment.