Skip to content

Commit

Permalink
hotfix(Mix.Tasks.Algolia.Update): undo name change
Browse files Browse the repository at this point in the history
can't use test index for batch operation
  • Loading branch information
thecristen committed Nov 15, 2023
1 parent 355c3c2 commit b6ada75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/algolia/lib/algolia/routes.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defmodule Algolia.Routes do
end

@impl Algolia.Index
def index_name, do: "routes" <> Application.get_env(:algolia, :index_suffix, "")
def index_name, do: "routes"

@spec get_stop_names(Routes.Route.t()) :: [String.t()]
def get_stop_names(route) do
Expand Down
2 changes: 1 addition & 1 deletion apps/algolia/lib/algolia/stops.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defmodule Algolia.Stops do
end

@impl Algolia.Index
def index_name, do: "stops" <> Application.get_env(:algolia, :index_suffix, "")
def index_name, do: "stops"

def by_route(route_id), do: @repo.by_route({route_id, 0, []})
end

0 comments on commit b6ada75

Please sign in to comment.