diff options
Diffstat (limited to 'server/models/video/video-file.ts')
-rw-r--r-- | server/models/video/video-file.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/video/video-file.ts b/server/models/video/video-file.ts index 6304f741c..68e2d562a 100644 --- a/server/models/video/video-file.ts +++ b/server/models/video/video-file.ts | |||
@@ -99,7 +99,7 @@ export class VideoFileModel extends Model<VideoFileModel> { | |||
99 | static doesInfohashExist (infoHash: string) { | 99 | static doesInfohashExist (infoHash: string) { |
100 | const query = 'SELECT 1 FROM "videoFile" WHERE "infoHash" = $infoHash LIMIT 1' | 100 | const query = 'SELECT 1 FROM "videoFile" WHERE "infoHash" = $infoHash LIMIT 1' |
101 | const options = { | 101 | const options = { |
102 | type: QueryTypes.SELECT, | 102 | type: QueryTypes.SELECT as QueryTypes.SELECT, |
103 | bind: { infoHash }, | 103 | bind: { infoHash }, |
104 | raw: true | 104 | raw: true |
105 | } | 105 | } |