Fix 500 on unknown thread
This commit is contained in:
parent
353f8bc0c7
commit
9b337d8c0f
1 changed files with 4 additions and 0 deletions
|
@ -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))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue