Skip to content

Commit

Permalink
Rename function name to be more precise
Browse files Browse the repository at this point in the history
  • Loading branch information
arbulu89 committed Apr 4, 2022
1 parent 17ec018 commit 9e53ea8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/trento/application/integration/checks/checks.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ defmodule Trento.Integration.Checks do
end
end

@spec get_catalog_by_provider ::
@spec get_catalog_grouped_by_provider ::
{:ok, CatalogDto.t()} | {:error, any}
def get_catalog_by_provider do
def get_catalog_grouped_by_provider do
case get_catalog() do
{:ok, content} ->
group_by_provider_by_group(content.checks)
Expand Down
2 changes: 1 addition & 1 deletion lib/trento_web/controllers/catalog_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ defmodule TrentoWeb.CatalogController do
end

defp get_catalog(_) do
case Checks.get_catalog_by_provider() do
case Checks.get_catalog_grouped_by_provider() do
{:ok, catalog} ->
{:ok, catalog.providers}

Expand Down

0 comments on commit 9e53ea8

Please sign in to comment.