aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares')
-rw-r--r--server/middlewares/validators/plugins.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/server/middlewares/validators/plugins.ts b/server/middlewares/validators/plugins.ts
index 8cb3153aa..68704bf56 100644
--- a/server/middlewares/validators/plugins.ts
+++ b/server/middlewares/validators/plugins.ts
@@ -88,7 +88,7 @@ const uninstallPluginValidator = [
88] 88]
89 89
90const existingPluginValidator = [ 90const existingPluginValidator = [
91 param('npmName').custom(isPluginNameValid).withMessage('Should have a valid plugin name'), 91 param('npmName').custom(isNpmPluginNameValid).withMessage('Should have a valid plugin name'),
92 92
93 async (req: express.Request, res: express.Response, next: express.NextFunction) => { 93 async (req: express.Request, res: express.Response, next: express.NextFunction) => {
94 logger.debug('Checking enabledPluginValidator parameters', { parameters: req.params }) 94 logger.debug('Checking enabledPluginValidator parameters', { parameters: req.params })
@@ -121,9 +121,6 @@ const updatePluginSettingsValidator = [
121] 121]
122 122
123const listAvailablePluginsValidator = [ 123const listAvailablePluginsValidator = [
124 query('sort')
125 .optional()
126 .exists().withMessage('Should have a valid sort'),
127 query('search') 124 query('search')
128 .optional() 125 .optional()
129 .exists().withMessage('Should have a valid search'), 126 .exists().withMessage('Should have a valid search'),