X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmiddlewares%2Fvalidators%2Fplugins.ts;h=ab87fe720c87b428717f05939f5cd49068fe3e62;hb=8280d0c22797c72978f698dc2deaa8ef569a9d15;hp=1083e0afae83677c9bbd9122f674d6038e3ac687;hpb=90aa0a74e95d390d62942aa72d481d5aa7b5ac23;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