add torrent file validation

This commit is contained in:
ghost 2023-10-08 04:25:38 +03:00
parent 5aa20e6a22
commit f919a7ed85
2 changed files with 14 additions and 6 deletions

View file

@ -45,7 +45,7 @@ class TorrentController extends AbstractController
}
// Read file
if (!$file = $torrentService->readTorrentFileById($torrent->getId()))
if (!$file = $torrentService->readTorrentFileByTorrentId($torrent->getId()))
{
throw $this->createNotFoundException();
}