Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
MiriamAparicio committed Sep 27, 2021
1 parent de9ded8 commit 68d8065
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions x-pack/plugins/apm/server/routes/traces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,14 @@ const transactionByIdRoute = createApmServerRoute({
path: t.type({
transactionId: t.string,
}),
query: rangeRt,
}),
options: { tags: ['access:apm'] },
handler: async (resources) => {
const { params } = resources;
const { transactionId } = params.path;
const { start, end } = params.query;
const setup = await setupRequest(resources);
return {
transaction: await getTransaction({ transactionId, setup, start, end }),
transaction: await getTransaction({ transactionId, setup }),
};
},
});
Expand Down

0 comments on commit 68d8065

Please sign in to comment.