mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Proper send on enter
This commit is contained in:
@ -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);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user