From d71a609b4f8ca3c35e615ce9fefc32bb45f45a0b Mon Sep 17 00:00:00 2001 From: Timothy Date: Tue, 7 Jul 2026 19:36:37 +0200 Subject: [PATCH] fix(app): persist MediaItemId on deco break-content updates and adds (#144 S3 review) UpdateDecoHandler copied every break-content field except MediaItemId, so TelevisionShow/Season/Artist break content validated then persisted with a null MediaItemId (upstream bug surfaced by the new REST API). Co-Authored-By: Claude Fable 5 --- ErsatzTV.Application/Scheduling/Commands/UpdateDecoHandler.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ErsatzTV.Application/Scheduling/Commands/UpdateDecoHandler.cs b/ErsatzTV.Application/Scheduling/Commands/UpdateDecoHandler.cs index 7fada0d28..2b8537929 100644 --- a/ErsatzTV.Application/Scheduling/Commands/UpdateDecoHandler.cs +++ b/ErsatzTV.Application/Scheduling/Commands/UpdateDecoHandler.cs @@ -97,6 +97,7 @@ public class UpdateDecoHandler(IDbContextFactory dbContextFactory) { ex.CollectionType = toUpdate.CollectionType; ex.CollectionId = toUpdate.CollectionId; + ex.MediaItemId = toUpdate.MediaItemId; ex.MultiCollectionId = toUpdate.MultiCollectionId; ex.SmartCollectionId = toUpdate.SmartCollectionId; ex.PlaylistId = toUpdate.PlaylistId; @@ -111,6 +112,7 @@ public class UpdateDecoHandler(IDbContextFactory dbContextFactory) DecoId = existing.Id, CollectionType = add.CollectionType, CollectionId = add.CollectionId, + MediaItemId = add.MediaItemId, MultiCollectionId = add.MultiCollectionId, SmartCollectionId = add.SmartCollectionId, PlaylistId = add.PlaylistId,