From c47c8ad83bfdd60b8b338d256e042672bb72fdf0 Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 10 Oct 2023 23:39:39 +0300 Subject: [PATCH] fix dependencies --- src/Service/TorrentService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Service/TorrentService.php b/src/Service/TorrentService.php index dc729d2..14eaa10 100644 --- a/src/Service/TorrentService.php +++ b/src/Service/TorrentService.php @@ -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