Skip to content

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
abe garcia committed Jun 29, 2023
1 parent e37f28d commit 4e856a3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useInterval } from '@spinnaker/core';
import { ExecutionsTable } from './ExecutionsTable';
import { POLL_DELAY_MS, REQUEST_PAGE_SIZE } from './constants';
import type { IDateRange } from '../date-picker/date-picker';
import { getExecutions } from '../../services/gate';
import { gate } from '../../services/';
import { STATUSES } from '../status';

const useStyles = makeStyles({
Expand Down Expand Up @@ -46,7 +46,7 @@ export const PipelineExecutions = ({
};

const refreshExecutions = () => {
getExecutions(appName, getExecutionsParams).then((resp) => setExecutions(resp));
gate.getExecutions(appName, getExecutionsParams).then((resp) => setExecutions(resp));
};

useEffect(() => {
Expand All @@ -65,7 +65,7 @@ export const PipelineExecutions = ({
endDate: dateRange.end,
};

getExecutions(appName, requestParams).then((resp) => {
gate.getExecutions(appName, requestParams).then((resp) => {
setExecutions(resp);
setFilteredExecutions(filterExecutions(resp));
setStatusCount(getStatusCount(resp));
Expand All @@ -83,7 +83,7 @@ export const PipelineExecutions = ({

useInterval(async () => {
if (!pipeline) return;
const resp = await getExecutions(appName, {
const resp = await gate.getExecutions(appName, {
pipelineName: pipeline.name,
pageSize: REQUEST_PAGE_SIZE,
startDate: dateRange.start,
Expand Down

0 comments on commit 4e856a3

Please sign in to comment.