Proper send on enter

This commit is contained in:
SillyLossy
2023-04-29 17:12:39 +03:00
parent 677913d87a
commit aa9db5292c
4 changed files with 141 additions and 109 deletions

View File

@ -1848,7 +1848,8 @@ app.post('/status_poe', jsonParser, async (request, response) => {
return response.send({ 'bot_names': botNames });
}
catch {
catch (err) {
console.error(err);
return response.sendStatus(401);
}
});
@ -1869,7 +1870,8 @@ app.post('/purge_poe', jsonParser, async (request, response) => {
return response.send({ "ok": true });
}
catch {
catch (err) {
console.error(err);
return response.sendStatus(500);
}
});