mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-18 06:53:07 +03:00
Fix bug when migrating user db with users that have never logged in.
This commit is contained in:
@@ -282,7 +282,7 @@ namespace Emby.Server.Implementations.Session
|
||||
|
||||
if (user != null)
|
||||
{
|
||||
var userLastActivityDate = user.LastActivityDate;
|
||||
var userLastActivityDate = user.LastActivityDate ?? DateTime.MinValue;
|
||||
user.LastActivityDate = activityDate;
|
||||
|
||||
if ((activityDate - userLastActivityDate).TotalSeconds > 60)
|
||||
|
||||
Reference in New Issue
Block a user