Skip to content

Commit

Permalink
Use BotManager.Finch instead of Arena.Finch
Browse files Browse the repository at this point in the history
  • Loading branch information
AminArria committed Jun 13, 2024
1 parent 205dde1 commit 04c500d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions apps/bot_manager/lib/application.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ defmodule BotManager.Application do
children = [
BotManager.BotSupervisor,
{Plug.Cowboy, Application.get_env(:bot_manager, :end_point_configuration)},
{Finch, name: BotManager.Finch},
BotManager.TokenFetcher
]

Expand Down
2 changes: 1 addition & 1 deletion apps/bot_manager/lib/token_fetcher.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ defmodule BotManager.TokenFetcher do

result =
Finch.build(:post, "#{gateway_url}/auth/generate-bot-token", [{"content-type", "application/json"}], payload)
|> Finch.request(Arena.Finch)
|> Finch.request(BotManager.Finch)

case result do
{:ok, %Finch.Response{status: 200, body: body}} ->
Expand Down

0 comments on commit 04c500d

Please sign in to comment.