mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00: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
|
: res.statusCode >= 200
|
||||||
? '&2'
|
? '&2'
|
||||||
: '&f') + res.statusCode;
|
: '&f') + res.statusCode;
|
||||||
let responseTime = res.getResponseTime().toFixed(2);
|
let responseTime = res.elapsedTime.toFixed(2);
|
||||||
responseTime = (responseTime >= 100
|
responseTime = (responseTime >= 100
|
||||||
? '&c'
|
? '&c'
|
||||||
: responseTime >= 10
|
: responseTime >= 10
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
module.exports.get = () => ({
|
module.exports.get = () => ({
|
||||||
handler: async (req, res) => {
|
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);
|
res.code(status === 0 ? 200 : 503).send(status);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user