diff options
| author | Patrick Barron <barronpm@gmail.com> | 2020-05-28 14:21:26 -0400 |
|---|---|---|
| committer | Patrick Barron <barronpm@gmail.com> | 2020-05-28 14:21:26 -0400 |
| commit | 8ca78f33e9769f823fe079e90b62b561646709d7 (patch) | |
| tree | 7574380fac7f21bcf7dd21a18452203a0525e8d7 /Jellyfin.Server.Implementations/Users/UserManager.cs | |
| parent | d1164979123a03c5f591dc04a4809adc695d0ae0 (diff) | |
Fix bug when migrating user db with users that have never logged in.
Diffstat (limited to 'Jellyfin.Server.Implementations/Users/UserManager.cs')
| -rw-r--r-- | Jellyfin.Server.Implementations/Users/UserManager.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Users/UserManager.cs b/Jellyfin.Server.Implementations/Users/UserManager.cs index 60d78afd0..3d473f5f2 100644 --- a/Jellyfin.Server.Implementations/Users/UserManager.cs +++ b/Jellyfin.Server.Implementations/Users/UserManager.cs @@ -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, |
