feature(database-connection): Add routing for dynamic seasons
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import TableEntry from "../models/TableEntry";
|
||||
import RequestError from "../models/RequestError";
|
||||
import UserStatsResponse from "../models/UserStatsResponse";
|
||||
|
||||
|
||||
export default class UserStatsService {
|
||||
@@ -13,7 +13,7 @@ export default class UserStatsService {
|
||||
}
|
||||
};
|
||||
|
||||
async getStats(): Promise<TableEntry[]> {
|
||||
async getStats(seasonId: string): Promise<UserStatsResponse> {
|
||||
return fetch(this.apiURL, this.requestInit)
|
||||
.then(res => UserStatsService.checkResponse(res))
|
||||
.then(data => data.json());
|
||||
|
||||
Reference in New Issue
Block a user