]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/custom-validators/videos.ts
Remove smooth scroll behaviour
[github/Chocobozzz/PeerTube.git] / server / helpers / custom-validators / videos.ts
index cfb430c638485034a23dd0bdf1a2a4989a65ebac..60e8075f6466ca0388d9151ec0624b167c27d1ac 100644 (file)
@@ -73,7 +73,7 @@ function isVideoViewsValid (value: string) {
 }
 
 function isVideoRatingTypeValid (value: string) {
-  return value === 'none' || values(VIDEO_RATE_TYPES).indexOf(value as VideoRateType) !== -1
+  return value === 'none' || values(VIDEO_RATE_TYPES).includes(value as VideoRateType)
 }
 
 function isVideoFileExtnameValid (value: string) {