fix: missing session item for mercure alert topic

This commit is contained in:
2025-06-10 13:39:19 -05:00
parent 0b80779975
commit 7ffa927d55
2 changed files with 21 additions and 3 deletions

View File

@@ -12,15 +12,12 @@ use Symfony\Component\Routing\Attribute\Route;
final class IndexController extends AbstractController
{
public function __construct(
private readonly DownloadRepository $downloadRepository,
private readonly Tmdb $tmdb,
) {}
#[Route('/', name: 'app_index')]
public function index(Request $request): Response
{
$request->getSession()->set('mercure_alert_topic', 'alerts_' . uniqid());
return $this->render('index/index.html.twig', [
'active_downloads' => $this->getUser()->getActiveDownloads(),
'recent_downloads' => $this->getUser()->getDownloads(),