pre-commit

This commit is contained in:
jojopirker
2023-01-06 11:55:31 +01:00
parent 1bd0336d27
commit a822db11a7
2 changed files with 57 additions and 49 deletions
@@ -11,8 +11,8 @@ const handler = async (req, res) => {
const { id } = req.query;
if(!id){
res.status(400).end()
if (!id) {
res.status(400).end();
return;
}
@@ -26,7 +26,7 @@ const handler = async (req, res) => {
const message = await messageRes.json();
if(!message.parent_id){
if (!message.parent_id) {
res.status(404).end();
return;
}