X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fcontrollers%2Ftracker.ts;h=d09b19cae872687366ca8d80b9d39aaf05b72f98;hb=e4bf78561763cd84d22ebceb6f371cccf9a356d8;hp=c962fada5250564cb45d31d2d2585f9886d6ab8f;hpb=db48de8597897e5024f8e9ed5acb1a8f40748169;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/controllers/tracker.ts b/server/controllers/tracker.ts index c962fada5..d09b19cae 100644 --- a/server/controllers/tracker.ts +++ b/server/controllers/tracker.ts @@ -51,7 +51,7 @@ const trackerServer = new TrackerServer({ const videoFileExists = await VideoFileModel.doesInfohashExistCached(infoHash) if (videoFileExists === true) return cb() - const playlistExists = await VideoStreamingPlaylistModel.doesInfohashExist(infoHash) + const playlistExists = await VideoStreamingPlaylistModel.doesInfohashExistCached(infoHash) if (playlistExists === true) return cb() cb(new Error(`Unknown infoHash ${infoHash} requested by ip ${ip}`))