mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 05:53:03 +03:00
Reverted Test code
This commit is contained in:
@@ -1290,6 +1290,11 @@ public sealed class BaseItemRepository(
|
||||
{
|
||||
foreach (var ancestorId in item.AncestorIds)
|
||||
{
|
||||
if (!context.BaseItems.Any(f => f.Id == ancestorId))
|
||||
{
|
||||
throw new InvalidOperationException($"Cannot link non-existent parent: {ancestorId}");
|
||||
}
|
||||
|
||||
context.AncestorIds.Add(new AncestorId()
|
||||
{
|
||||
ParentItemId = ancestorId,
|
||||
|
||||
Reference in New Issue
Block a user