Skip to content

Commit

Permalink
fix fastify deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasstrejcek committed Sep 14, 2023
1 parent d16a397 commit 0d1ecff
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 0d1ecff

Please sign in to comment.