chore(dependencies): stop using fastify's deprecated properties

This commit is contained in:
Isaac 2024-03-03 17:34:26 +00:00
parent 04f0b0d033
commit f4ff01398e
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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);
},
});