]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/bulk.ts
add operationId doc middleware to so API endpoints
[github/Chocobozzz/PeerTube.git] / server / controllers / api / bulk.ts
index 649351029f1fb569aa12eaf0a0222b262d34bc57..192daccde80e5e638adcf0d44dea0dbd920e071d 100644 (file)
@@ -34,7 +34,7 @@ async function bulkRemoveCommentsOf (req: express.Request, res: express.Response
   const comments = await VideoCommentModel.listForBulkDelete(account, filter)
 
   // Don't wait result
-  res.sendStatus(HttpStatusCode.NO_CONTENT_204)
+  res.status(HttpStatusCode.NO_CONTENT_204).end()
 
   for (const comment of comments) {
     await removeComment(comment)