+const areSubscriptionsExistValidator = [
+ query('uris')
+ .customSanitizer(toArray)
+ .custom(areValidActorHandles).withMessage('Should have a valid uri array'),
+
+ (req: express.Request, res: express.Response, next: express.NextFunction) => {
+ logger.debug('Checking areSubscriptionsExistValidator parameters', { parameters: req.query })
+
+ if (areValidationErrors(req, res)) return
+
+ return next()
+ }
+]
+