]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/tracker.ts
emit more specific status codes on video upload (#3423)
[github/Chocobozzz/PeerTube.git] / server / controllers / tracker.ts
index c962fada5250564cb45d31d2d2585f9886d6ab8f..d09b19cae872687366ca8d80b9d39aaf05b72f98 100644 (file)
@@ -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}`))