Skip to content

Commit

Permalink
fix: correctly start finch adapter for tesla (resend uses it :clown:)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoedsoupe committed Aug 25, 2024
1 parent e2a4392 commit 2be9c9c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/pescarte/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ defmodule Pescarte.Application do
{Phoenix.PubSub, name: Pescarte.PubSub},
PescarteWeb.Endpoint,
Pescarte.CotacoesETL.InjesterSupervisor,
Pescarte.Supabase
Pescarte.Supabase,
{Finch, name: PescarteHTTPClient}
]
|> maybe_append_children(Pescarte.env())
end
Expand Down
3 changes: 1 addition & 2 deletions lib/pescarte/cotacoes_etl/ingester_supervisor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ defmodule Pescarte.CotacoesETL.InjesterSupervisor do
ZIPExtractor,
CotacoesFetcher,
CotacaoDownloader,
CotacaoIngester,
{Finch, name: PescarteHTTPClient}
CotacaoIngester
]
else
[]
Expand Down
2 changes: 1 addition & 1 deletion lib/pescarte_web/controllers/contact_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ defmodule PescarteWeb.ContactController do
def send_email(conn, %{"contact_form" => contact_form_params}) do
case ContactForm.apply_action_changeset(contact_form_params, :insert) do
{:ok, contact_form} ->
client = Resend.client(api_key: "RESEND_KEY")
client = Resend.client()

email_data = %{
from: contact_form.sender_email,
Expand Down

0 comments on commit 2be9c9c

Please sign in to comment.