]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/video/video-file.ts
Update server dependencies
[github/Chocobozzz/PeerTube.git] / server / models / video / video-file.ts
index 6304f741ce0aa272d2ad0bb2b1c76961ec5a2e35..68e2d562a318f9d11ffc8b0e908cf075ff8885dc 100644 (file)
@@ -99,7 +99,7 @@ export class VideoFileModel extends Model<VideoFileModel> {
   static doesInfohashExist (infoHash: string) {
     const query = 'SELECT 1 FROM "videoFile" WHERE "infoHash" = $infoHash LIMIT 1'
     const options = {
-      type: QueryTypes.SELECT,
+      type: QueryTypes.SELECT as QueryTypes.SELECT,
       bind: { infoHash },
       raw: true
     }