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

Loading…
Cancel
Save