Return programme snapshot from Events link-room API.
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:
isaacclad
2026-07-04 22:25:12 +00:00
co-authored by Cursor
parent 422c7e01bf
commit 6cf069d630
3 changed files with 22 additions and 2 deletions
@@ -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
{