|
|
@ -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 |
|
|
|