X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmiddlewares%2Fvalidators%2Fplugins.ts;h=ab87fe720c87b428717f05939f5cd49068fe3e62;hb=d29ced1a8582d99b776f664475a157adcf555d98;hp=1083e0afae83677c9bbd9122f674d6038e3ac687;hpb=1896bca09e088b0da9d5e845407ecebae330618c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/middlewares/validators/plugins.ts b/server/middlewares/validators/plugins.ts index 1083e0afa..ab87fe720 100644 --- a/server/middlewares/validators/plugins.ts +++ b/server/middlewares/validators/plugins.ts @@ -109,7 +109,6 @@ const installOrUpdatePluginValidator = [ if (!body.path && !body.npmName) { return res.status(HttpStatusCode.BAD_REQUEST_400) .json({ error: 'Should have either a npmName or a path' }) - .end() } return next() @@ -140,7 +139,6 @@ const existingPluginValidator = [ if (!plugin) { return res.status(HttpStatusCode.NOT_FOUND_404) .json({ error: 'Plugin not found' }) - .end() } res.locals.plugin = plugin