diff --git a/SharpbinV3.Client/src/lib/server/api.ts b/SharpbinV3.Client/src/lib/server/api.ts index d49ce78..c590aa0 100644 --- a/SharpbinV3.Client/src/lib/server/api.ts +++ b/SharpbinV3.Client/src/lib/server/api.ts @@ -2,6 +2,6 @@ import { env } from '$env/dynamic/private'; export const apiUrl = env.VITE_API_URL ?? 'http://localhost:5050'; export const viewInternalApiKey = - env.NODE_ENV === 'development' - ? 'cccdd42d9f2f648493e402f1da7c855ea798ad510e6bb9ea712dd7bed838e58' - : env.VIEW_INTERNAL_API_KEY ?? env.View_HMAC_Internal_API_Key ?? ''; \ No newline at end of file + env.NODE_ENV === 'development' + ? 'cccdd42d9f2f648493e402f1da7c855ea798ad510e6bb9ea712dd7bed838e58' + : (env.VIEW_INTERNAL_API_KEY ?? env.View_HMAC_Internal_API_Key ?? ''); diff --git a/SharpbinV3.Server/Services/EmailService.cs b/SharpbinV3.Server/Services/EmailService.cs index e3f1d44..c7befdd 100644 --- a/SharpbinV3.Server/Services/EmailService.cs +++ b/SharpbinV3.Server/Services/EmailService.cs @@ -1,9 +1,9 @@ +using System.Threading.Channels; using MailKit.Net.Smtp; using MailKit.Security; using Microsoft.Extensions.Options; using MimeKit; using SharpbinV3.Server.Settings; -using System.Threading.Channels; namespace SharpbinV3.Server.Services { @@ -11,11 +11,7 @@ namespace SharpbinV3.Server.Services { private readonly EmailSettings settings = emailSettings.Value; private readonly Channel queue = Channel.CreateUnbounded( - new UnboundedChannelOptions - { - SingleReader = true, - SingleWriter = false, - } + new UnboundedChannelOptions { SingleReader = true, SingleWriter = false } ); public async Task SendAsync(string to, string subject, string body)