فهرست منبع

Fixed issue when LastLoginDate or LastActivityDate were null

Patrick Barron 5 سال پیش
والد
کامیت
fefb282137
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 4 4
      Jellyfin.Server/Migrations/Routines/MigrateUserDb.cs

+ 4 - 4
Jellyfin.Server/Migrations/Routines/MigrateUserDb.cs

@@ -116,8 +116,8 @@ namespace Jellyfin.Server.Migrations.Routines
                         SubtitleLanguagePreference = config.SubtitleLanguagePreference,
                         SubtitleLanguagePreference = config.SubtitleLanguagePreference,
                         Password = mockup.Password,
                         Password = mockup.Password,
                         EasyPassword = mockup.EasyPassword,
                         EasyPassword = mockup.EasyPassword,
-                        LastLoginDate = mockup.LastLoginDate ?? DateTime.MinValue,
-                        LastActivityDate = mockup.LastActivityDate ?? DateTime.MinValue
+                        LastLoginDate = mockup.LastLoginDate,
+                        LastActivityDate = mockup.LastActivityDate
                     };
                     };
 
 
                     if (mockup.ImageInfos.Length > 0)
                     if (mockup.ImageInfos.Length > 0)
@@ -196,9 +196,9 @@ namespace Jellyfin.Server.Migrations.Routines
 
 
             public string EasyPassword { get; set; }
             public string EasyPassword { get; set; }
 
 
-            public DateTime? LastLoginDate { get; set; }
+            public DateTime LastLoginDate { get; set; }
 
 
-            public DateTime? LastActivityDate { get; set; }
+            public DateTime LastActivityDate { get; set; }
 
 
             public string Name { get; set; }
             public string Name { get; set; }