From cf546fd4b9a1fbf77bccf5f0b713e688d29a66ad Mon Sep 17 00:00:00 2001 From: iv-ar Date: Sat, 4 Mar 2023 16:54:16 +0100 Subject: feat: Use console to log --- code/api/src/Services/EmailValidationService.cs | 2 +- code/api/src/Services/VaultService.cs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'code/api/src/Services') 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 _logger; private int CACHE_TTL { get; set; } public VaultService(HttpClient client, IConfiguration configuration, IMemoryCache cache, ILogger logger) { @@ -21,7 +20,6 @@ public class VaultService _client = client; _cache = cache; _configuration = configuration; - _logger = logger; } public async Task GetSecretJsonAsync(string path) { -- cgit v1.3