Skip to content

Commit

Permalink
touchups
Browse files Browse the repository at this point in the history
  • Loading branch information
ascott18 committed Oct 23, 2024
1 parent a39b9ca commit 10e531d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ public async Task<ItemResult> SendEmailAsync(string to, string subject, string h
{
if (!env.IsProduction())
{
return await new NoOpEmailService(env)
.SendEmailAsync(to, subject, htmlMessage);
logger.LogWarning("Suppressed email send of '{subject}' to {to}:\n\n{content}",
subject, to, htmlMessage);
return await new NoOpEmailService(env).SendEmailAsync(to, subject, htmlMessage);
}

var endpoint = config.CurrentValue.Endpoint;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

namespace Coalesce.Starter.Vue.Data.Communication;

public class NoOpEmailService(IHostEnvironment env) : IEmailService
public class NoOpEmailService(
IHostEnvironment env
) : IEmailService
{
public Task<ItemResult> SendEmailAsync(string to, string subject, string htmlMessage)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ public async Task<ItemResult> SendEmailAsync(string to, string subject, string h
{
if (!env.IsProduction())
{
return await new NoOpEmailService(env)
.SendEmailAsync(to, subject, htmlMessage);
logger.LogWarning("Suppressed email send of '{subject}' to {to}:\n\n{content}",
subject, to, htmlMessage);
return await new NoOpEmailService(env).SendEmailAsync(to, subject, htmlMessage);
}

var apiKey = config.CurrentValue.ApiKey;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export default [
endOfLine: "auto",
},
],

"vue/multi-word-component-names": "off",
"vue/no-template-shadow": ["error", { allow: ["props"] }],

"prefer-const": "error",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
Expand Down

0 comments on commit 10e531d

Please sign in to comment.