fix: set up api client for swoosh

This commit is contained in:
Zach Daniel 2022-08-05 23:45:49 -04:00
parent 1e9dff5c1a
commit 59e9f1e8df
2 changed files with 4 additions and 2 deletions

View file

@ -50,4 +50,5 @@ config :logger, level: :info
#
# Check `Plug.SSL` for all available options in `force_ssl`.
config :ash_hq, AshHq.Mailer, adapter: Swoosh.Adapters.PostmarkAdapter
config :ash_hq, AshHq.Mailer, adapter: Swoosh.Adapters.Postmark
config :swoosh, :api_client, Swoosh.ApiClient.Finch

View file

@ -8,7 +8,8 @@ defmodule AshHq.Application do
@impl true
def start(_type, _args) do
children = [
{Finch, name: AshHq.Finch},
Supervisor.child_spec({Finch, name: AshHq.Finch}, id: AshHq.Finch),
Supervisor.child_spec({Finch, name: Swoosh.Finch}, id: Swoosh.Finch),
# Start the Ecto repository
AshHq.Repo,
# Start the Telemetry supervisor