diff options
Diffstat (limited to 'server/helpers/custom-validators')
-rw-r--r-- | server/helpers/custom-validators/misc.ts | 2 | ||||
-rw-r--r-- | server/helpers/custom-validators/pods.ts | 1 | ||||
-rw-r--r-- | server/helpers/custom-validators/remote/videos.ts | 1 | ||||
-rw-r--r-- | server/helpers/custom-validators/users.ts | 1 | ||||
-rw-r--r-- | server/helpers/custom-validators/videos.ts | 1 |
5 files changed, 6 insertions, 0 deletions
diff --git a/server/helpers/custom-validators/misc.ts b/server/helpers/custom-validators/misc.ts index f6bb02c8e..8d215a416 100644 --- a/server/helpers/custom-validators/misc.ts +++ b/server/helpers/custom-validators/misc.ts | |||
@@ -1,3 +1,5 @@ | |||
1 | import 'express-validator' | ||
2 | |||
1 | function exists (value: any) { | 3 | function exists (value: any) { |
2 | return value !== undefined && value !== null | 4 | return value !== undefined && value !== null |
3 | } | 5 | } |
diff --git a/server/helpers/custom-validators/pods.ts b/server/helpers/custom-validators/pods.ts index f2ca520c0..844bfdf78 100644 --- a/server/helpers/custom-validators/pods.ts +++ b/server/helpers/custom-validators/pods.ts | |||
@@ -1,4 +1,5 @@ | |||
1 | import * as validator from 'validator' | 1 | import * as validator from 'validator' |
2 | import 'express-validator' | ||
2 | 3 | ||
3 | import { isArray, exists } from './misc' | 4 | import { isArray, exists } from './misc' |
4 | import { isTestInstance } from '../core-utils' | 5 | import { isTestInstance } from '../core-utils' |
diff --git a/server/helpers/custom-validators/remote/videos.ts b/server/helpers/custom-validators/remote/videos.ts index 49f76e909..e5c76f3ca 100644 --- a/server/helpers/custom-validators/remote/videos.ts +++ b/server/helpers/custom-validators/remote/videos.ts | |||
@@ -1,3 +1,4 @@ | |||
1 | import 'express-validator' | ||
1 | import { has, values } from 'lodash' | 2 | import { has, values } from 'lodash' |
2 | 3 | ||
3 | import { | 4 | import { |
diff --git a/server/helpers/custom-validators/users.ts b/server/helpers/custom-validators/users.ts index 00061f9df..805437efa 100644 --- a/server/helpers/custom-validators/users.ts +++ b/server/helpers/custom-validators/users.ts | |||
@@ -1,5 +1,6 @@ | |||
1 | import { values } from 'lodash' | 1 | import { values } from 'lodash' |
2 | import * as validator from 'validator' | 2 | import * as validator from 'validator' |
3 | import 'express-validator' | ||
3 | 4 | ||
4 | import { exists } from './misc' | 5 | import { exists } from './misc' |
5 | import { CONSTRAINTS_FIELDS, USER_ROLES } from '../../initializers' | 6 | import { CONSTRAINTS_FIELDS, USER_ROLES } from '../../initializers' |
diff --git a/server/helpers/custom-validators/videos.ts b/server/helpers/custom-validators/videos.ts index 8b3a26644..1d27e47fc 100644 --- a/server/helpers/custom-validators/videos.ts +++ b/server/helpers/custom-validators/videos.ts | |||
@@ -1,5 +1,6 @@ | |||
1 | import { values } from 'lodash' | 1 | import { values } from 'lodash' |
2 | import * as validator from 'validator' | 2 | import * as validator from 'validator' |
3 | import 'express-validator' | ||
3 | import 'multer' | 4 | import 'multer' |
4 | 5 | ||
5 | import { | 6 | import { |