Set default value of SortBy during migrations.

This commit is contained in:
Patrick Barron 2020-07-27 21:01:08 -04:00
parent 754837f16f
commit 4b8ab1a803

View File

@ -119,7 +119,7 @@ namespace Jellyfin.Server.Migrations.Routines
var libraryDisplayPreferences = new ItemDisplayPreferences(displayPreferences.UserId, itemId, displayPreferences.Client)
{
SortBy = dto.SortBy,
SortBy = dto.SortBy ?? "SortName",
SortOrder = dto.SortOrder,
RememberIndexing = dto.RememberIndexing,
RememberSorting = dto.RememberSorting,