mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue