From c53dd72b2a0eb712fa797283df2742650884f2eb Mon Sep 17 00:00:00 2001 From: Mia Winter Date: Mon, 19 Feb 2024 15:20:56 +0100 Subject: [PATCH] fixed incorrect validation checking on mail configuration --- Wave/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wave/Program.cs b/Wave/Program.cs index d0d05e6..affac20 100644 --- a/Wave/Program.cs +++ b/Wave/Program.cs @@ -150,7 +150,7 @@ if (emailConfig.Smtp.Keys.Any(k => k.Equals("bulk", StringComparison.CurrentCultureIgnoreCase))) { builder.Services.AddScoped(); builder.Services.AddHostedService(); - } else if (builder.Configuration.GetSection(nameof(Features)).Get()?.EmailSubscriptions is not true) { + } else if (builder.Configuration.GetSection(nameof(Features)).Get()?.EmailSubscriptions is true) { throw new ApplicationException( "Email subscriptions have been enabled, but no 'bulk' email provider was configured. " + "Disable email subscriptions or provide the mail provider for bulk sending");