-import * as express from 'express'
+import express from 'express'
import { removeComment } from '@server/lib/video-comment'
import { bulkRemoveCommentsOfValidator } from '@server/middlewares/validators/bulk'
import { VideoCommentModel } from '@server/models/video/video-comment'
res.status(HttpStatusCode.NO_CONTENT_204).end()
for (const comment of comments) {
- await removeComment(comment)
+ await removeComment(comment, req, res)
}
}