Skip to content

Commit

Permalink
fix misattributed property parent in deprecation warning: request.ela…
Browse files Browse the repository at this point in the history
…psedTime -> reply.elapsedTime (#5299)
  • Loading branch information
mscottnelson committed Feb 1, 2024
1 parent 9c03896 commit 5fe74e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/warnings.js
Expand Up @@ -79,7 +79,7 @@ const FSTDEP019 = createDeprecation({

const FSTDEP020 = createDeprecation({
code: 'FSTDEP020',
message: 'You are using the deprecated "reply.getResponseTime()"" method. Use the "request.elapsedTime" property instead. Method "reply.getResponseTime()" will be removed in `fastify@5`.'
message: 'You are using the deprecated "reply.getResponseTime()" method. Use the "reply.elapsedTime" property instead. Method "reply.getResponseTime()" will be removed in `fastify@5`.'
})

const FSTWRN001 = createWarning({
Expand Down

0 comments on commit 5fe74e5

Please sign in to comment.