mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-29 08:10:18 -05:00
Fix root folder not being saved to Db if nessesary (#14819)
* Fix root folder not being saved to Db if nessesary * Always update folder to Db
This commit is contained in:
parent
091cb1c34a
commit
a1b85a63e7
@ -826,6 +826,7 @@ namespace Emby.Server.Implementations.Library
|
||||
|
||||
if (!folder.ParentId.Equals(rootFolder.Id))
|
||||
{
|
||||
rootFolder.UpdateToRepositoryAsync(ItemUpdateType.MetadataImport, CancellationToken.None).GetAwaiter().GetResult();
|
||||
folder.ParentId = rootFolder.Id;
|
||||
folder.UpdateToRepositoryAsync(ItemUpdateType.MetadataImport, CancellationToken.None).GetAwaiter().GetResult();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user