aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators/users.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/custom-validators/users.ts')
-rw-r--r--server/helpers/custom-validators/users.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/server/helpers/custom-validators/users.ts b/server/helpers/custom-validators/users.ts
index 8fd2dac4f..f303ab8db 100644
--- a/server/helpers/custom-validators/users.ts
+++ b/server/helpers/custom-validators/users.ts
@@ -1,7 +1,5 @@
1import { values } from 'lodash' 1import { values } from 'lodash'
2import expressValidator = require('express-validator') 2import * as validator from 'validator'
3// TODO: use .validator when express-validator typing will have validator field
4const validator = expressValidator['validator']
5 3
6import { CONSTRAINTS_FIELDS, USER_ROLES } from '../../initializers' 4import { CONSTRAINTS_FIELDS, USER_ROLES } from '../../initializers'
7const USERS_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.USERS 5const USERS_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.USERS