Skip to content

Commit

Permalink
hotfix: make pattern match work on string map rather than atoms
Browse files Browse the repository at this point in the history
  • Loading branch information
dealloc committed Feb 28, 2024
1 parent 3b58d92 commit e1b70af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helldivers_2_web/controllers/api/planets_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule Helldivers2Web.Api.PlanetsController do

alias Helldivers2.WarSeason

def index(%Plug.Conn{assigns: %{war_id: war_id}} = conn, _) do
def index(%Plug.Conn{assigns: %{"war_id" => war_id}} = conn, _) do
with {:ok, planets} <- WarSeason.get_planets(war_id) do
render(conn, :index, planets: planets)
end
Expand Down

0 comments on commit e1b70af

Please sign in to comment.