1
0
Fork 0

Fix 500 on unknown thread

This commit is contained in:
Chocobozzz 2020-11-27 11:48:20 +01:00
parent 353f8bc0c7
commit 9b337d8c0f
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -160,6 +160,10 @@ async function listVideoThreadComments (req: express.Request, res: express.Respo
} }
} }
if (resultList.data.length === 0) {
return res.sendStatus(404)
}
return res.json(buildFormattedCommentTree(resultList)) return res.json(buildFormattedCommentTree(resultList))
} }