diff options
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/custom-validators/misc.ts | 7 |
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 | ||
139 | function toArray (value: any) { | ||
140 | if (value && isArray(value) === false) return [ value ] | ||
141 | |||
142 | return value | ||
143 | } | ||
144 | |||
145 | function toIntArray (value: any) { | 139 | function 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 |