fix dependencies

This commit is contained in:
ghost 2023-10-10 23:39:39 +03:00
parent cf204d09d0
commit c47c8ad83b

View File

@ -484,9 +484,9 @@ class TorrentService
int $torrentSensitiveId
): ?TorrentSensitive
{
$torrentSensitive = $this->find(
$torrentSensitiveId
);
$torrentSensitive = $this->entityManagerInterface
->getRepository(TorrentSensitive::class)
->find($torrentSensitiveId);
$torrentSensitive->setApproved(
!$torrentSensitive->isApproved() // toggle current value