From da1e869be51c8cbbf60dd45adaa2c6650b0fd6e3 Mon Sep 17 00:00:00 2001 From: ghost Date: Fri, 13 Oct 2023 00:20:28 +0300 Subject: [PATCH] update torrent locales/sensitive values on user approve --- src/Service/TorrentService.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Service/TorrentService.php b/src/Service/TorrentService.php index 2a71e58..e06d747 100644 --- a/src/Service/TorrentService.php +++ b/src/Service/TorrentService.php @@ -568,6 +568,10 @@ class TorrentService $this->entityManagerInterface->persist($torrentLocales); $this->entityManagerInterface->flush(); + + $this->updateTorrentLocales( + $torrentLocales->getTorrentId(), + ); } } @@ -695,6 +699,10 @@ class TorrentService $this->entityManagerInterface->persist($torrentSensitive); $this->entityManagerInterface->flush(); + + $this->updateTorrentSensitive( + $torrentSensitive->getTorrentId(), + ); } }