]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/models/video/video-streaming-playlist.ts
findById -> findByPk
[github/Chocobozzz/PeerTube.git] / server / models / video / video-streaming-playlist.ts
index bf6f7b0c4c465ca0a07a2f7bbcd41e7edb7f9b37..e489f9b0e095ea75ec0128d49cf79553f0c282ed 100644 (file)
@@ -110,7 +110,7 @@ export class VideoStreamingPlaylistModel extends Model<VideoStreamingPlaylistMod
       ]
     }
 
-    return VideoStreamingPlaylistModel.findById(id, options)
+    return VideoStreamingPlaylistModel.findByPk(id, options)
   }
 
   static getHlsPlaylistFilename (resolution: number) {