aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/custom-validators')
-rw-r--r--server/helpers/custom-validators/misc.ts7
1 files changed, 0 insertions, 7 deletions
diff --git a/server/helpers/custom-validators/misc.ts b/server/helpers/custom-validators/misc.ts
index c80c86193..17750379d 100644
--- a/server/helpers/custom-validators/misc.ts
+++ b/server/helpers/custom-validators/misc.ts
@@ -136,12 +136,6 @@ function toValueOrNull (value: string) {
136 return value 136 return value
137} 137}
138 138
139function toArray (value: any) {
140 if (value && isArray(value) === false) return [ value ]
141
142 return value
143}
144
145function toIntArray (value: any) { 139function toIntArray (value: any) {
146 if (!value) return [] 140 if (!value) return []
147 if (isArray(value) === false) return [ validator.toInt(value) ] 141 if (isArray(value) === false) return [ validator.toInt(value) ]
@@ -170,7 +164,6 @@ export {
170 isBooleanValid, 164 isBooleanValid,
171 toIntOrNull, 165 toIntOrNull,
172 areUUIDsValid, 166 areUUIDsValid,
173 toArray,
174 toIntArray, 167 toIntArray,
175 isFileValid, 168 isFileValid,
176 checkMimetypeRegex 169 checkMimetypeRegex