fix: content match id on calendar generation

This commit is contained in:
Aymeric GUERACAGUE 2025-12-21 23:34:29 +01:00
parent 6d482d9370
commit 2a17cd082c
Signed by: Superkooka
GPG Key ID: F78F2B172E894865
1 changed files with 1 additions and 0 deletions

View File

@ -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);