diff options
| author | iv-ar <i@oiee.no> | 2023-03-04 16:54:16 +0100 |
|---|---|---|
| committer | iv-ar <i@oiee.no> | 2023-03-04 16:54:16 +0100 |
| commit | cf546fd4b9a1fbf77bccf5f0b713e688d29a66ad (patch) | |
| tree | 8103d953afec0618a55dc957ba8a3222dac0e842 /code/api/src/Services | |
| parent | b85164718d3bd6a4ad5fc06d04a3ce2dc028b1db (diff) | |
| download | greatoffice-cf546fd4b9a1fbf77bccf5f0b713e688d29a66ad.tar.xz greatoffice-cf546fd4b9a1fbf77bccf5f0b713e688d29a66ad.zip | |
feat: Use console to log
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) { |
