Only get 1 week of transactions for TeamView table

This commit is contained in:
Peter 2023-09-18 07:11:19 -04:00
parent 05062e3b7d
commit f564733e14

View File

@ -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