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 <noreply@anthropic.com>
This commit is contained in:
@@ -97,6 +97,7 @@ public class UpdateDecoHandler(IDbContextFactory<TvContext> 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<TvContext> dbContextFactory)
|
||||
DecoId = existing.Id,
|
||||
CollectionType = add.CollectionType,
|
||||
CollectionId = add.CollectionId,
|
||||
MediaItemId = add.MediaItemId,
|
||||
MultiCollectionId = add.MultiCollectionId,
|
||||
SmartCollectionId = add.SmartCollectionId,
|
||||
PlaylistId = add.PlaylistId,
|
||||
|
||||
Reference in New Issue
Block a user