Pass iterations in API call

This commit is contained in:
Erik Vroon
2023-02-01 17:38:32 +01:00
parent cfee73688c
commit e4fd83c3bc

View File

@@ -81,7 +81,7 @@ export function getUpcomingMatches(
schedulerSettings: SchedulerSettings
): SWRResponse {
return useSWR(
`tournaments/${tournament_id}/upcoming_matches?elo_diff_threshold=${schedulerSettings.eloThreshold}&only_behind_schedule=${schedulerSettings.onlyBehindSchedule}&limit=${schedulerSettings.limit}`,
`tournaments/${tournament_id}/upcoming_matches?elo_diff_threshold=${schedulerSettings.eloThreshold}&only_behind_schedule=${schedulerSettings.onlyBehindSchedule}&limit=${schedulerSettings.limit}&iterations=${schedulerSettings.iterations}`,
fetcher
);
}