fix: moves monitor logic into own directory
This commit is contained in:
@@ -10,6 +10,7 @@ use Carbon\Carbon;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Mercure\HubInterface;
|
||||
use Symfony\Component\Mercure\Update;
|
||||
use Symfony\Component\Routing\Attribute\Route;
|
||||
use Symfony\Contracts\Cache\CacheInterface;
|
||||
use Symfony\Contracts\Cache\ItemInterface;
|
||||
@@ -73,10 +74,7 @@ final class TorrentioController extends AbstractController
|
||||
);
|
||||
$cache->delete($cacheId);
|
||||
|
||||
$cacheId = sprintf("page.%s.%s", "tvshows", $input->tmdbId);
|
||||
$cache->delete($cacheId);
|
||||
|
||||
$this->hub->publish(new \Symfony\Component\Mercure\Update(
|
||||
$this->hub->publish(new Update(
|
||||
'alerts',
|
||||
$this->renderer->render('broadcast/Alert.html.twig', [
|
||||
'alert_id' => uniqid(),
|
||||
|
||||
Reference in New Issue
Block a user