From 7226e90fdc61a3c6cad5ccab18b6707d55cf0992 Mon Sep 17 00:00:00 2001 From: lutangar Date: Wed, 24 Nov 2021 14:33:14 +0100 Subject: Add `req` and `res` as controllers hooks parameters Hooks prefixed by `action:api` now give access the original express req and res. Checkout guide.md for possible usage. --- server/controllers/api/bulk.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/controllers/api/bulk.ts') diff --git a/server/controllers/api/bulk.ts b/server/controllers/api/bulk.ts index d27c3c73e..51292175b 100644 --- a/server/controllers/api/bulk.ts +++ b/server/controllers/api/bulk.ts @@ -37,6 +37,6 @@ async function bulkRemoveCommentsOf (req: express.Request, res: express.Response res.status(HttpStatusCode.NO_CONTENT_204).end() for (const comment of comments) { - await removeComment(comment) + await removeComment(comment, req, res) } } -- cgit v1.2.3