Browse Source

Add max length for SortBy

Patrick Barron 5 years ago
parent
commit
2831062a3f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Jellyfin.Data/Entities/DisplayPreferences.cs

+ 2 - 0
Jellyfin.Data/Entities/DisplayPreferences.cs

@@ -120,6 +120,8 @@ namespace Jellyfin.Data.Entities
         /// <summary>
         /// Gets or sets what the view should be sorted by.
         /// </summary>
+        [MaxLength(64)]
+        [StringLength(64)]
         public string SortBy { get; set; }
 
         /// <summary>