aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations/Users/UserManager.cs
diff options
context:
space:
mode:
authorBond_009 <Bond.009@outlook.com>2020-07-22 21:07:13 +0200
committerBond_009 <Bond.009@outlook.com>2020-07-22 21:07:13 +0200
commit941f326c0b786ba8bac02dd745ea998055e6e554 (patch)
tree0c649f317b5bc5f26758e2e7f4888bfba72b1832 /Jellyfin.Server.Implementations/Users/UserManager.cs
parent6cbfae209d5e4621624d9cc249c601f46c3721c5 (diff)
Don't AddAsync
Diffstat (limited to 'Jellyfin.Server.Implementations/Users/UserManager.cs')
-rw-r--r--Jellyfin.Server.Implementations/Users/UserManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Server.Implementations/Users/UserManager.cs b/Jellyfin.Server.Implementations/Users/UserManager.cs
index 5d72ff938..a0dd2a6b3 100644
--- a/Jellyfin.Server.Implementations/Users/UserManager.cs
+++ b/Jellyfin.Server.Implementations/Users/UserManager.cs
@@ -216,7 +216,7 @@ namespace Jellyfin.Server.Implementations.Users
var newUser = await CreateUserInternalAsync(name, dbContext).ConfigureAwait(false);
- await dbContext.Users.AddAsync(newUser).ConfigureAwait(false);
+ dbContext.Users.Add(newUser);
await dbContext.SaveChangesAsync().ConfigureAwait(false);
OnUserCreated?.Invoke(this, new GenericEventArgs<User>(newUser));
@@ -608,7 +608,7 @@ namespace Jellyfin.Server.Implementations.Users
newUser.SetPermission(PermissionKind.EnableContentDeletion, true);
newUser.SetPermission(PermissionKind.EnableRemoteControlOfOtherUsers, true);
- await dbContext.Users.AddAsync(newUser).ConfigureAwait(false);
+ dbContext.Users.Add(newUser);
await dbContext.SaveChangesAsync().ConfigureAwait(false);
}