small fix

master^2
Tudor Stanciu 2023-01-29 00:33:27 +02:00
parent f6a9230d85
commit e4130c29ba
4 changed files with 3 additions and 5 deletions

View File

@ -79,7 +79,5 @@ This configuration area is:
} }
``` ```
For the moment, the only purpose of the database is to store the logs generated by Serilog.
## Hosting ## Hosting
The only hosting environment tested for this service is Docker, but considering that .NET 6 is cross platform, it can most likely be hosted in any environment. The only hosting environment tested for this service is Docker, but considering that .NET 6 is cross platform, it can most likely be hosted in any environment.

View File

@ -7,7 +7,7 @@ namespace Correo.Mailgun.Extensions
internal static class ModelExtensions internal static class ModelExtensions
{ {
public static string ToMailgunAddress(this EmailMessage.MailAddress address) public static string ToMailgunAddress(this EmailMessage.MailAddress address)
=> $"{address.DisplayName} <{address.Address}>"; => string.IsNullOrEmpty(address.DisplayName) ? address.Address : $"{address.DisplayName} <{address.Address}>";
public static string ToMailgunAddresses(this IEnumerable<EmailMessage.MailAddress> addresses) public static string ToMailgunAddresses(this IEnumerable<EmailMessage.MailAddress> addresses)
{ {

View File

@ -13,6 +13,6 @@ namespace Correo.PublishedLanguage.Commands
public IEnumerable<MailAddress> Bcc { get; init; } public IEnumerable<MailAddress> Bcc { get; init; }
public bool IsBodyHtml { get; init; } public bool IsBodyHtml { get; init; }
public record MailAddress(string Address, string DisplayName); public record MailAddress(string Address, string DisplayName = null);
} }
} }

View File

@ -2,7 +2,7 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net6.0</TargetFramework> <TargetFramework>net6.0</TargetFramework>
<Version>1.0.0</Version> <Version>1.0.1</Version>
<PackageIcon>correo.png</PackageIcon> <PackageIcon>correo.png</PackageIcon>
<Description>Correo published language</Description> <Description>Correo published language</Description>
</PropertyGroup> </PropertyGroup>