From 9ea43d269ecb7ab047eef283861673547bcea0fa Mon Sep 17 00:00:00 2001 From: Laura Beatris <48022589+LauraBeatris@users.noreply.github.com> Date: Sat, 21 Oct 2023 13:50:31 -0300 Subject: [PATCH] Add comment to prod.exs to fix `mix format` --- config/prod.ex | 1 + lib/workos/client/tesla_client.ex | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/prod.ex b/config/prod.ex index e69de29..f1fb4ce 100644 --- a/config/prod.ex +++ b/config/prod.ex @@ -0,0 +1 @@ + # This empty module is for configuration purposes diff --git a/lib/workos/client/tesla_client.ex b/lib/workos/client/tesla_client.ex index 9ed6d68..889d0ed 100644 --- a/lib/workos/client/tesla_client.ex +++ b/lib/workos/client/tesla_client.ex @@ -7,7 +7,7 @@ defmodule WorkOs.Client.TeslaClient do @doc """ Sends a request to a WorkOs API endpoint, given list of request opts. """ - @spec request(Resend.Client.t(), Keyword.t()) :: + @spec request(WorkOs.Client.t(), Keyword.t()) :: {:ok, %{body: map(), status: pos_integer()}} | {:error, any()} def request(client, opts) do opts = Keyword.take(opts, [:method, :url, :query, :headers, :body, :opts]) @@ -17,7 +17,7 @@ defmodule WorkOs.Client.TeslaClient do @doc """ Returns a new `Tesla.Client`, configured for calling the WorkOs API. """ - @spec new(Resend.Client.t()) :: Tesla.Client.t() + @spec new(WorkOs.Client.t()) :: Tesla.Client.t() def new(client) do Tesla.client([ Tesla.Middleware.Logger,