Skip to content

Commit

Permalink
fix: remove fastify deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasstrejcek committed Sep 15, 2023
1 parent d16a397 commit 2b84c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function extractUserData(request) {
exports.extractUserData = extractUserData;

const getTransactionName = (request) => {
return `${request.method} ${request.routerPath}`;
return `${request.method} ${request.routeOptions.url}`;
};
exports.getTransactionName = getTransactionName;

Expand Down

0 comments on commit 2b84c12

Please sign in to comment.