fix: test mocks for new trait methods, V1 schedule_config re-import, stale comments

This commit is contained in:
2026-03-17 14:53:23 +01:00
parent 6d350940b9
commit 26343b08f8
5 changed files with 21 additions and 4 deletions

View File

@@ -102,7 +102,7 @@ pub(super) async fn update_channel(
channel.timezone = tz;
}
if let Some(sc) = payload.schedule_config {
channel.schedule_config = sc;
channel.schedule_config = domain::ScheduleConfig::from(sc);
}
if let Some(rp) = payload.recycle_policy {
channel.recycle_policy = rp;

View File

@@ -18,7 +18,7 @@ use crate::{
use super::require_owner;
/// Trigger 48-hour schedule generation for a channel, starting from now.
/// Trigger 7-day schedule generation for a channel, starting from now.
/// Replaces any existing schedule for the same window.
pub(super) async fn generate_schedule(
State(state): State<AppState>,
@@ -42,7 +42,7 @@ pub(super) async fn generate_schedule(
Ok((StatusCode::CREATED, Json(ScheduleResponse::from(schedule))))
}
/// Return the currently active 48-hour schedule for a channel.
/// Return the currently active 7-day schedule for a channel.
/// 404 if no schedule has been generated yet — call POST /:id/schedule first.
pub(super) async fn get_active_schedule(
State(state): State<AppState>,