Fix bug when migrating user db with users that have never logged in.

This commit is contained in:
Patrick Barron
2020-05-28 14:21:26 -04:00
parent d116497912
commit 8ca78f33e9
5 changed files with 12 additions and 18 deletions

View File

@@ -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,