-import { doesVideoExist } from '../../helpers/middlewares'
-import { UserRole } from '../../../shared/models/users'
-import { MUserDefault } from '@server/typings/models'
-import { Hooks } from '@server/lib/plugins/hooks'
+import { Redis } from '../../lib/redis'
+import { isSignupAllowed, isSignupAllowedForCurrentIP } from '../../lib/signup'
+import { ActorModel } from '../../models/actor/actor'
+import { UserModel } from '../../models/user/user'
+import { areValidationErrors, doesVideoChannelIdExist, doesVideoExist, isValidVideoIdParam } from './shared'
+
+const usersListValidator = [
+ query('blocked')
+ .optional()
+ .customSanitizer(toBooleanOrNull)
+ .isBoolean().withMessage('Should be a valid boolean banned state'),
+
+ (req: express.Request, res: express.Response, next: express.NextFunction) => {
+ logger.debug('Checking usersList parameters', { parameters: req.query })
+
+ if (areValidationErrors(req, res)) return
+
+ return next()
+ }
+]