mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-22 15:53:08 +02:00
fix: use more appropriate status code
This commit is contained in:
parent
f126a6d4a3
commit
036c208cf8
@ -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 } = res.context.config.client.ws;
|
||||||
res.code(status === 0 ? 200 : 425).send(status);
|
res.code(status === 0 ? 200 : 503).send(status);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user