diff options
Diffstat (limited to 'server/helpers/custom-validators/users.ts')
-rw-r--r-- | server/helpers/custom-validators/users.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/helpers/custom-validators/users.ts b/server/helpers/custom-validators/users.ts index c3cdefd4e..8d6247e41 100644 --- a/server/helpers/custom-validators/users.ts +++ b/server/helpers/custom-validators/users.ts | |||
@@ -15,6 +15,10 @@ function isUserVideoQuotaValid (value: string) { | |||
15 | return exists(value) && validator.isInt(value + '', USERS_CONSTRAINTS_FIELDS.VIDEO_QUOTA) | 15 | return exists(value) && validator.isInt(value + '', USERS_CONSTRAINTS_FIELDS.VIDEO_QUOTA) |
16 | } | 16 | } |
17 | 17 | ||
18 | function isUserVideoQuotaDailyValid (value: string) { | ||
19 | return exists(value) && validator.isInt(value + '', USERS_CONSTRAINTS_FIELDS.VIDEO_QUOTA_DAILY) | ||
20 | } | ||
21 | |||
18 | function isUserUsernameValid (value: string) { | 22 | function isUserUsernameValid (value: string) { |
19 | const max = USERS_CONSTRAINTS_FIELDS.USERNAME.max | 23 | const max = USERS_CONSTRAINTS_FIELDS.USERNAME.max |
20 | const min = USERS_CONSTRAINTS_FIELDS.USERNAME.min | 24 | const min = USERS_CONSTRAINTS_FIELDS.USERNAME.min |
@@ -66,6 +70,7 @@ export { | |||
66 | isUserBlockedReasonValid, | 70 | isUserBlockedReasonValid, |
67 | isUserRoleValid, | 71 | isUserRoleValid, |
68 | isUserVideoQuotaValid, | 72 | isUserVideoQuotaValid, |
73 | isUserVideoQuotaDailyValid, | ||
69 | isUserUsernameValid, | 74 | isUserUsernameValid, |
70 | isUserNSFWPolicyValid, | 75 | isUserNSFWPolicyValid, |
71 | isUserAutoPlayVideoValid, | 76 | isUserAutoPlayVideoValid, |