Skip to content

Commit

Permalink
ts fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Jan 22, 2020
1 parent 94ebeeb commit c4b807e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

import Joi from 'joi';
import { Legacy } from 'kibana';
import { CSV_FROM_SAVEDOBJECT_JOB_TYPE } from '../../../common/constants';
import { ServerFacade, Logger } from '../../../types';
import { authorizedUserPreRoutingFactory } from './authorized_user_pre_routing';
Expand Down Expand Up @@ -33,7 +32,7 @@ export function getRouteConfigFactoryReportingPre(
const authorizedUserPreRouting = authorizedUserPreRoutingFactory(server, logger);
const reportingFeaturePreRouting = reportingFeaturePreRoutingFactory(server, logger);

return (getFeatureId?: GetFeatureFunction): RouteConfigFactory => {
return (getFeatureId?: GetReportingFeatureIdFn): RouteConfigFactory => {
const preRouting: any[] = [{ method: authorizedUserPreRouting, assign: 'user' }];
if (getFeatureId) {
preRouting.push(reportingFeaturePreRouting(getFeatureId));
Expand Down

0 comments on commit c4b807e

Please sign in to comment.