mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Use consistent name for db context
This commit is contained in:
parent
4206c0e091
commit
0292936c65
@ -117,8 +117,8 @@ namespace Jellyfin.Server.Implementations.Security
|
|||||||
#pragma warning restore CA1508
|
#pragma warning restore CA1508
|
||||||
|
|
||||||
authInfo.HasToken = true;
|
authInfo.HasToken = true;
|
||||||
await using var jellyfinDb = _jellyfinDbProvider.CreateContext();
|
await using var dbContext = _jellyfinDbProvider.CreateContext();
|
||||||
var device = await jellyfinDb.Devices.FirstOrDefaultAsync(d => d.AccessToken == token).ConfigureAwait(false);
|
var device = await dbContext.Devices.FirstOrDefaultAsync(d => d.AccessToken == token).ConfigureAwait(false);
|
||||||
|
|
||||||
if (device != null)
|
if (device != null)
|
||||||
{
|
{
|
||||||
@ -183,8 +183,8 @@ namespace Jellyfin.Server.Implementations.Security
|
|||||||
|
|
||||||
if (updateToken)
|
if (updateToken)
|
||||||
{
|
{
|
||||||
jellyfinDb.Devices.Update(device);
|
dbContext.Devices.Update(device);
|
||||||
await jellyfinDb.SaveChangesAsync().ConfigureAwait(false);
|
await dbContext.SaveChangesAsync().ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user