Browse Source

fix dependencies

main
ghost 1 year ago
parent
commit
c47c8ad83b
  1. 6
      src/Service/TorrentService.php

6
src/Service/TorrentService.php

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

Loading…
Cancel
Save