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 int $torrentSensitiveId
): ?TorrentSensitive ): ?TorrentSensitive
{ {
$torrentSensitive = $this->find( $torrentSensitive = $this->entityManagerInterface
$torrentSensitiveId ->getRepository(TorrentSensitive::class)
); ->find($torrentSensitiveId);
$torrentSensitive->setApproved( $torrentSensitive->setApproved(
!$torrentSensitive->isApproved() // toggle current value !$torrentSensitive->isApproved() // toggle current value