aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2021-06-18 17:09:59 -0400
committerPatrick Barron <barronpm@gmail.com>2021-06-18 17:09:59 -0400
commit0292936c659b25464c1bc1e1b80711f873a1a7cd (patch)
treed9d95741a4af4730640c9f03693f5b9816cdd2ef
parent4206c0e0910e257f2fa05db7e63b554919d799b3 (diff)
Use consistent name for db context
-rw-r--r--Jellyfin.Server.Implementations/Security/AuthorizationContext.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Jellyfin.Server.Implementations/Security/AuthorizationContext.cs b/Jellyfin.Server.Implementations/Security/AuthorizationContext.cs
index 4b073ed33..e589fae30 100644
--- a/Jellyfin.Server.Implementations/Security/AuthorizationContext.cs
+++ b/Jellyfin.Server.Implementations/Security/AuthorizationContext.cs
@@ -117,8 +117,8 @@ namespace Jellyfin.Server.Implementations.Security
#pragma warning restore CA1508
authInfo.HasToken = true;
- await using var jellyfinDb = _jellyfinDbProvider.CreateContext();
- var device = await jellyfinDb.Devices.FirstOrDefaultAsync(d => d.AccessToken == token).ConfigureAwait(false);
+ await using var dbContext = _jellyfinDbProvider.CreateContext();
+ var device = await dbContext.Devices.FirstOrDefaultAsync(d => d.AccessToken == token).ConfigureAwait(false);
if (device != null)
{
@@ -183,8 +183,8 @@ namespace Jellyfin.Server.Implementations.Security
if (updateToken)
{
- jellyfinDb.Devices.Update(device);
- await jellyfinDb.SaveChangesAsync().ConfigureAwait(false);
+ dbContext.Devices.Update(device);
+ await dbContext.SaveChangesAsync().ConfigureAwait(false);
}
}