The Free Software Media System - Server Backend & API
Use consistent name for db context
Patrick Barron0292936c659b
diff --git a/Jellyfin.Server.Implementations/Security/AuthorizationContext.cs b/Jellyfin.Server.Implementations/Security/AuthorizationContext.csindex 4b073ed33e..e589fae301 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 CA1508authInfo.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.Securityif (updateToken){- jellyfinDb.Devices.Update(device);- await jellyfinDb.SaveChangesAsync().ConfigureAwait(false);+ dbContext.Devices.Update(device);+ await dbContext.SaveChangesAsync().ConfigureAwait(false);}}