Skip to content

Commit

Permalink
Filter active items when encoding the configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico-Sanchez committed Dec 24, 2024
1 parent 25dc0c9 commit a4d8948
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defmodule Gateway.Controllers.CurseOfMirra.ConfigurationController do
Jason.encode!(%{
characters: encode_characters(version.characters),
game: version.game_configuration,
items: encode_items(version.consumable_items),
items: encode_items(version.consumable_items |> Enum.filter(fn ci -> ci.active end)),
map: version.map_configurations
})

Expand Down

0 comments on commit a4d8948

Please sign in to comment.