fix(api): update block lookups to use all_blocks() after ScheduleConfig V2

This commit is contained in:
2026-03-17 14:31:24 +01:00
parent a79ee1b228
commit 8b701745bf
2 changed files with 3 additions and 6 deletions

View File

@@ -245,8 +245,7 @@ impl ScheduledSlotResponse {
pub fn with_block_access(slot: domain::ScheduledSlot, channel: &domain::Channel) -> Self {
let block_access_mode = channel
.schedule_config
.blocks
.iter()
.all_blocks()
.find(|b| b.id == slot.source_block_id)
.map(|b| b.access_mode.clone())
.unwrap_or_default();