diff options
Diffstat (limited to 'code/api/src/Services')
| -rw-r--r-- | code/api/src/Services/EmailValidationService.cs | 2 | ||||
| -rw-r--r-- | code/api/src/Services/VaultService.cs | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/code/api/src/Services/EmailValidationService.cs b/code/api/src/Services/EmailValidationService.cs index 5552c4f..c7be20a 100644 --- a/code/api/src/Services/EmailValidationService.cs +++ b/code/api/src/Services/EmailValidationService.cs @@ -62,6 +62,6 @@ Validate your email address by opening this link in a browser {1} queueItem.EmailSentAt = AppDateTime.UtcNow; _database.ValidationEmails.Add(queueItem); await _database.SaveChangesAsync(); - Task.Run(async () => await _mailService.SendMailAsync(email)); + await Task.Run(async () => await _mailService.SendMailAsync(email)); } }
\ No newline at end of file diff --git a/code/api/src/Services/VaultService.cs b/code/api/src/Services/VaultService.cs index 4243929..3290e30 100644 --- a/code/api/src/Services/VaultService.cs +++ b/code/api/src/Services/VaultService.cs @@ -7,7 +7,6 @@ public class VaultService private readonly HttpClient _client; private readonly IMemoryCache _cache; private readonly IConfiguration _configuration; - private readonly ILogger<VaultService> _logger; private int CACHE_TTL { get; set; } public VaultService(HttpClient client, IConfiguration configuration, IMemoryCache cache, ILogger<VaultService> logger) { @@ -21,7 +20,6 @@ public class VaultService _client = client; _cache = cache; _configuration = configuration; - _logger = logger; } public async Task<T> GetSecretJsonAsync<T>(string path) { |
