Only get 1 week of transactions for TeamView table
This commit is contained in:
parent
05062e3b7d
commit
f564733e14
@ -15,7 +15,7 @@ export interface Transaction {
|
||||
}
|
||||
|
||||
export async function fetchTransactionsByTeamAndWeek(seasonNumber: number, teamAbbreviation: string, weekNumber: number): Promise<Transaction[]> {
|
||||
const response = await fetch(`${SITE_URL}/api/v3/transactions?season=${seasonNumber}&team_abbrev=${teamAbbreviation}&week_start=${weekNumber}`)
|
||||
const response = await fetch(`${SITE_URL}/api/v3/transactions?season=${seasonNumber}&team_abbrev=${teamAbbreviation}&week_start=${weekNumber}&week_end=${weekNumber}`)
|
||||
|
||||
const transactionsResponse: {
|
||||
count: number
|
||||
|
||||
Loading…
Reference in New Issue
Block a user