Skip to content

Commit

Permalink
fix: use before/after search params for historic allocation CSV downl…
Browse files Browse the repository at this point in the history
…oad endpoint [DET-10442] (#9730)

(cherry picked from commit d46d776)
  • Loading branch information
corban-beaird authored and determined-ci committed Jul 25, 2024
1 parent 9947eba commit 9f5fefb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ const ClusterHistoricalUsageCsvModalComponent: React.FC<Props> = ({
const groupByEndpoint = form.getFieldValue('groupBy');
const searchParams = new URLSearchParams();

searchParams.append('timestamp_from', formFromDate.startOf('day').toISOString());
searchParams.append('timestamp_to', formToDate.endOf('day').toISOString());
searchParams.append('timestamp_after', formFromDate.startOf('day').toISOString());
searchParams.append('timestamp_before', formToDate.endOf('day').toISOString());
handlePath(event, {
external: true,
path: serverAddress(groupByEndpoint + searchParams.toString()),
Expand Down

0 comments on commit 9f5fefb

Please sign in to comment.