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:
@@ -218,7 +218,7 @@ namespace Jellyfin.Server.Implementations.Users
|
||||
|
||||
var dbContext = _dbProvider.CreateContext();
|
||||
|
||||
if (!dbContext.Users.Contains(user))
|
||||
if (dbContext.Users.Find(user.Id) == null)
|
||||
{
|
||||
throw new ArgumentException(string.Format(
|
||||
CultureInfo.InvariantCulture,
|
||||
|
||||
Reference in New Issue
Block a user