diff options
| author | Patrick Barron <barronpm@gmail.com> | 2021-04-10 17:11:59 -0400 |
|---|---|---|
| committer | Patrick Barron <barronpm@gmail.com> | 2021-04-10 17:11:59 -0400 |
| commit | ed0b5ff0171e340544702d99a07c149e01c5bf8a (patch) | |
| tree | 47fd042c5694218a254a5f71b130fa95c05fad02 /Jellyfin.Server.Implementations/Security/AuthenticationManager.cs | |
| parent | 3ebc0474343eb07defb6dd6f0e8bed707471e0a0 (diff) | |
Fix builds
Diffstat (limited to 'Jellyfin.Server.Implementations/Security/AuthenticationManager.cs')
| -rw-r--r-- | Jellyfin.Server.Implementations/Security/AuthenticationManager.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Jellyfin.Server.Implementations/Security/AuthenticationManager.cs b/Jellyfin.Server.Implementations/Security/AuthenticationManager.cs index 37b8ee6e0..ab76e2302 100644 --- a/Jellyfin.Server.Implementations/Security/AuthenticationManager.cs +++ b/Jellyfin.Server.Implementations/Security/AuthenticationManager.cs @@ -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) { |
