From 969339c04b0a0e9fa4548b350756db79f114aa8f Mon Sep 17 00:00:00 2001 From: Mia Winter Date: Mon, 9 Sep 2024 17:05:50 +0200 Subject: [PATCH] code improvement --- Wave/Services/NewsletterBackgroundService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wave/Services/NewsletterBackgroundService.cs b/Wave/Services/NewsletterBackgroundService.cs index 0f0fa55..bf2089a 100644 --- a/Wave/Services/NewsletterBackgroundService.cs +++ b/Wave/Services/NewsletterBackgroundService.cs @@ -66,7 +66,7 @@ public class NewsletterBackgroundService(ILogger lo newsletter.Article.BodyHtml + aboutTheAuthor, newsletter.Article.BodyPlain, "newsletter-" + newsletter.Id, replyTo); - await client.SendEmailAsync(email); + await client.SendEmailAsync(email, cancellationToken); } } }