fix: content match id on calendar generation
This commit is contained in:
parent
6d482d9370
commit
2a17cd082c
|
|
@ -57,6 +57,7 @@ class GenerateGamesCalendar
|
||||||
$away = $this->entityManager->getRepository(Team::class)->find($game->awayTeamId) ?? throw new \Exception('Team not found');
|
$away = $this->entityManager->getRepository(Team::class)->find($game->awayTeamId) ?? throw new \Exception('Team not found');
|
||||||
|
|
||||||
$events[] = Event::create($away->name . ' vs ' . $home->name)
|
$events[] = Event::create($away->name . ' vs ' . $home->name)
|
||||||
|
->uniqueIdentifier($game->id)
|
||||||
->startsAt($game->startTimeScheduled)
|
->startsAt($game->startTimeScheduled)
|
||||||
->endsAt($game->endTimeScheduled ?? $game->startTimeScheduled->modify('+3 hours')) // should be a parameter of the league
|
->endsAt($game->endTimeScheduled ?? $game->startTimeScheduled->modify('+3 hours')) // should be a parameter of the league
|
||||||
->address($game->venue);
|
->address($game->venue);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue