Fix builds

This commit is contained in:
Patrick Barron
2021-04-10 17:11:59 -04:00
parent 3ebc047434
commit ed0b5ff017
5 changed files with 20 additions and 11 deletions

View File

@@ -52,14 +52,15 @@ namespace Jellyfin.Server.Implementations.Security
}
/// <inheritdoc />
public async Task DeleteApiKey(Guid id)
public async Task DeleteApiKey(Guid accessToken)
{
await using var dbContext = _dbProvider.CreateContext();
var key = await dbContext.ApiKeys
.AsQueryable()
.Where(apiKey => apiKey.AccessToken == id)
.FirstOrDefaultAsync();
.Where(apiKey => apiKey.AccessToken == accessToken)
.FirstOrDefaultAsync()
.ConfigureAwait(false);
if (key == null)
{