mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-16 17:03:09 +02:00
chore(dependencies): stop using fastify's deprecated properties
This commit is contained in:
parent
04f0b0d033
commit
f4ff01398e
@ -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
|
||||
|
@ -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);
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user