fix saving watermarks and graphics on playout items (#2313)

This commit is contained in:
Jason Dove
2025-08-13 19:37:46 +00:00
committed by GitHub
parent 8cc0d30c0e
commit 0841bc400b
6 changed files with 43 additions and 32 deletions
@@ -29,4 +29,17 @@ public class ChannelController(ChannelWriter<IBackgroundServiceRequest> workerCh
return new NotFoundResult();
}
[HttpPost("/api/channels/{channelNumber}/playout/continue")]
public async Task<IActionResult> ContinuePlayout(string channelNumber)
{
Option<int> maybePlayoutId = await mediator.Send(new GetPlayoutIdByChannelNumber(channelNumber));
foreach (int playoutId in maybePlayoutId)
{
await workerChannel.WriteAsync(new BuildPlayout(playoutId, PlayoutBuildMode.Continue));
return new OkResult();
}
return new NotFoundResult();
}
}