From 2a17cd082c67e3f7466e1d9fc2e70d15742c7b84 Mon Sep 17 00:00:00 2001 From: Superkooka Date: Sun, 21 Dec 2025 23:34:29 +0100 Subject: [PATCH] fix: content match id on calendar generation --- src/Application/UseCase/GenerateGamesCalendar.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Application/UseCase/GenerateGamesCalendar.php b/src/Application/UseCase/GenerateGamesCalendar.php index af62162..6f1a0d9 100644 --- a/src/Application/UseCase/GenerateGamesCalendar.php +++ b/src/Application/UseCase/GenerateGamesCalendar.php @@ -57,6 +57,7 @@ class GenerateGamesCalendar $away = $this->entityManager->getRepository(Team::class)->find($game->awayTeamId) ?? throw new \Exception('Team not found'); $events[] = Event::create($away->name . ' vs ' . $home->name) + ->uniqueIdentifier($game->id) ->startsAt($game->startTimeScheduled) ->endsAt($game->endTimeScheduled ?? $game->startTimeScheduled->modify('+3 hours')) // should be a parameter of the league ->address($game->venue);