From 8280d0c22797c72978f698dc2deaa8ef569a9d15 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 12 Apr 2021 10:10:48 +0200 Subject: Ensure to install supported plugins --- server/middlewares/validators/plugins.ts | 2 -- 1 file changed, 2 deletions(-) (limited to 'server/middlewares') 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 -- cgit v1.2.3