浏览代码

Add max length for SortBy

Patrick Barron 5 年之前
父节点
当前提交
2831062a3f
共有 1 个文件被更改,包括 2 次插入0 次删除
  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>