Return programme snapshot from Events link-room API.
Deploy Ladill Events / deploy (push) Successful in 31s
Deploy Ladill Events / deploy (push) Successful in 31s
Meet can persist the agenda locally when linking, even if the service-to-service Meet sync fails. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -137,6 +137,21 @@ class EventMeetSyncService
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $session
|
||||
* @return array{programme_snapshot: array<string, mixed>|null, linked_programme_items: list<array<string, mixed>>}
|
||||
*/
|
||||
public function programmePayloadForSession(QrCode $event, array $session): array
|
||||
{
|
||||
$programmeSnapshot = $this->programmeSnapshotFor($event);
|
||||
$itemRefs = (array) ($session['programme_item_refs'] ?? []);
|
||||
|
||||
return [
|
||||
'programme_snapshot' => $programmeSnapshot,
|
||||
'linked_programme_items' => $this->programmes->itemsForRefs($programmeSnapshot, $itemRefs),
|
||||
];
|
||||
}
|
||||
|
||||
/** @return array<string, mixed>|null */
|
||||
private function programmeSnapshotFor(QrCode $event): ?array
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user