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:
JPVenson 2025-09-19 19:47:41 +02:00 committed by GitHub
parent 091cb1c34a
commit a1b85a63e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();
}