Skip to content

Commit

Permalink
address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonelizabeth committed Apr 30, 2020
1 parent a4c298d commit 5bbb9fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ export const registerSimulateRoute = ({
},
license.guardApiRoute(async (ctx, req, res) => {
const { callAsCurrentUser } = ctx.core.elasticsearch.dataClient;
const reqBody = req.body;

const { pipeline, documents, verbose } = reqBody;
const { pipeline, documents, verbose } = req.body;

try {
const response = await callAsCurrentUser('ingest.simulate', {
Expand Down
3 changes: 1 addition & 2 deletions x-pack/plugins/ingest_pipelines/server/routes/api/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ export const registerUpdateRoute = ({
license.guardApiRoute(async (ctx, req, res) => {
const { callAsCurrentUser } = ctx.core.elasticsearch.dataClient;
const { name } = req.params;
const pipeline = req.body as Pipeline;

const { description, processors, version, on_failure } = pipeline;
const { description, processors, version, on_failure } = req.body;

try {
// Verify pipeline exists; ES will throw 404 if it doesn't
Expand Down

0 comments on commit 5bbb9fc

Please sign in to comment.