Skip to content

Commit

Permalink
chore(dependencies): stop using fastify's deprecated properties
Browse files Browse the repository at this point in the history
  • Loading branch information
eartharoid committed Mar 3, 2024
1 parent 04f0b0d commit f4ff013
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ module.exports = async client => {
: res.statusCode >= 200
? '&2'
: '&f') + res.statusCode;
let responseTime = res.getResponseTime().toFixed(2);
let responseTime = res.elapsedTime.toFixed(2);
responseTime = (responseTime >= 100
? '&c'
: responseTime >= 10
Expand Down
2 changes: 1 addition & 1 deletion src/routes/status.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports.get = () => ({
handler: async (req, res) => {
const { status } = res.context.config.client.ws;
const { status } = req.routeOptions.config.client.ws;
res.code(status === 0 ? 200 : 503).send(status);
},
});

0 comments on commit f4ff013

Please sign in to comment.