This commit is contained in:
isUnknown 2024-09-10 13:47:04 +02:00
parent 2f0a8f36d8
commit e58e630f9b
5 changed files with 27 additions and 31 deletions

View file

@ -34,7 +34,7 @@ function createArraySession($event, $session) {
$arraySession['place'] = $event->place();
$arraySession['public'] = $event->public();
$arraySession['event-url'] = $event->url();
$arraySession['duration'] = $isMapadoEvent ? $event->remoteDuration() : $event->duration();
$arraySession['duration'] = $event->duration();
$arraySession['ticketingUrl'] = $isMapadoEvent ? $session->ticketingUrl() : false;
$arraySession['bookableStock'] = $isMapadoEvent ? $session->bookableStock()->value() : 'free';
$arraySession['totalStock'] = $isMapadoEvent ? (int) $event->totalStock()->value() : 'free';