mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 05:53:03 +03:00
Fixed Tests
This commit is contained in:
@@ -1300,7 +1300,8 @@ public sealed class BaseItemRepository(
|
||||
}
|
||||
}
|
||||
|
||||
var itemValuesToSave = GetItemValuesToSave(item.Item, item.InheritedTags);
|
||||
// Never save duplicate itemValues as they are now mapped anyway.
|
||||
var itemValuesToSave = GetItemValuesToSave(item.Item, item.InheritedTags).DistinctBy(e => (GetCleanValue(e.Value), e.MagicNumber));
|
||||
context.ItemValuesMap.Where(e => e.ItemId == entity.Id).ExecuteDelete();
|
||||
foreach (var itemValue in itemValuesToSave)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user