website refactor
This commit is contained in:
@@ -17,4 +17,9 @@ export class RaceService {
|
||||
async getRacesByLeagueId(leagueId: string): Promise<any> {
|
||||
return this.apiClient.getPageData(leagueId);
|
||||
}
|
||||
|
||||
async findByLeagueId(leagueId: string): Promise<any[]> {
|
||||
const result = await this.apiClient.getPageData(leagueId);
|
||||
return result.races || [];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user