Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Mar 16, 2020
1 parent 7e6339b commit 570162b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ import { StatesIndexStatus, StatesIndexStatusType } from '../../../common/runtim
import { apiService } from './utils';

export const fetchIndexStatus = async (): Promise<StatesIndexStatus> => {
return await apiService.get(API_URLS.INDEX_STATUS, null, StatesIndexStatusType);
return await apiService.get(API_URLS.INDEX_STATUS, undefined, StatesIndexStatusType);
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

import { UMServerLibs } from '../../lib/lib';
import { UMRestApiRouteFactory } from '../types';
import { REST_API_URLS } from '../../../../../legacy/plugins/uptime/common/constants/rest_api';
import { API_URLS } from '../../../../../legacy/plugins/uptime/common/constants';

export const createGetIndexStatusRoute: UMRestApiRouteFactory = (libs: UMServerLibs) => ({
method: 'GET',
path: REST_API_URLS.INDEX_STATUS,
path: API_URLS.INDEX_STATUS,
validate: false,
options: {
tags: ['access:uptime'],
Expand Down

0 comments on commit 570162b

Please sign in to comment.