Skip to content

Commit

Permalink
Rename other validateObject occurrences
Browse files Browse the repository at this point in the history
  • Loading branch information
DianaDerevyankina committed Dec 21, 2020
1 parent 4261fbe commit 8f1f8a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/vis_type_timeseries/server/routes/vis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

import { IRouter, KibanaRequest } from 'kibana/server';
import { schema } from '@kbn/config-schema';
import { validateObject } from '@kbn/std';
import { ensureNoUnsafeProperties } from '@kbn/std';
import { getVisData, GetVisDataOptions } from '../lib/get_vis_data';
import { visPayloadSchema } from '../../common/vis_schema';
import { ROUTES } from '../../common/constants';
Expand All @@ -42,7 +42,7 @@ export const visDataRoutes = (
},
async (requestContext, request, response) => {
try {
validateObject(request.body);
ensureNoUnsafeProperties(request.body);
} catch (error) {
return response.badRequest({
body: error.message,
Expand Down

0 comments on commit 8f1f8a9

Please sign in to comment.