diff options
Diffstat (limited to 'server/models/video/video-file.ts')
-rw-r--r-- | server/models/video/video-file.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video/video-file.ts b/server/models/video/video-file.ts index f95022383..6a321917c 100644 --- a/server/models/video/video-file.ts +++ b/server/models/video/video-file.ts | |||
@@ -123,8 +123,8 @@ export class VideoFileModel extends Model<VideoFileModel> { | |||
123 | @Column | 123 | @Column |
124 | extname: string | 124 | extname: string |
125 | 125 | ||
126 | @AllowNull(false) | 126 | @AllowNull(true) |
127 | @Is('VideoFileInfohash', value => throwIfNotValid(value, isVideoFileInfoHashValid, 'info hash')) | 127 | @Is('VideoFileInfohash', value => throwIfNotValid(value, isVideoFileInfoHashValid, 'info hash', true)) |
128 | @Column | 128 | @Column |
129 | infoHash: string | 129 | infoHash: string |
130 | 130 | ||