diff --git a/apps/arena/lib/arena/configuration.ex b/apps/arena/lib/arena/configuration.ex index 7cd36bfbd..05ab1852e 100644 --- a/apps/arena/lib/arena/configuration.ex +++ b/apps/arena/lib/arena/configuration.ex @@ -50,8 +50,7 @@ defmodule Arena.Configuration do |> Finch.request(Arena.Finch) Jason.decode!(payload.body, [{:keys, :atoms}]) - |> Map.update!(:map, fn maps -> Enum.map(maps, fn map -> parse_map_config(map) end) - end) + |> Map.update!(:map, fn maps -> Enum.map(maps, fn map -> parse_map_config(map) end) end) |> Map.get(:map) end diff --git a/apps/game_backend/lib/game_backend/configuration/version.ex b/apps/game_backend/lib/game_backend/configuration/version.ex index e78675c3f..095b55277 100644 --- a/apps/game_backend/lib/game_backend/configuration/version.ex +++ b/apps/game_backend/lib/game_backend/configuration/version.ex @@ -33,6 +33,14 @@ defmodule GameBackend.Configuration.Version do |> cast_assoc(:skills, with: &Skill.assoc_changeset/2) |> cast_assoc(:map_configurations, with: &MapConfiguration.assoc_changeset/2) |> cast_assoc(:game_configuration, with: &GameConfiguration.assoc_changeset/2) - |> validate_required([:name, :current, :characters, :consumable_items, :skills, :map_configurations, :game_configuration]) + |> validate_required([ + :name, + :current, + :characters, + :consumable_items, + :skills, + :map_configurations, + :game_configuration + ]) end end