fix(core): fixed pings issue

This commit is contained in:
Dmitry Popov
2025-11-29 00:54:07 +01:00
parent 6b308e8a1e
commit e738e1da9c
@@ -60,7 +60,10 @@ defmodule WandererAppWeb.MapRoutesEventHandler do
ping_system_ids =
pings
|> Enum.map(fn %{system: %{solar_system_id: solar_system_id}} -> "#{solar_system_id}" end)
|> Enum.flat_map(fn
%{system: %{solar_system_id: solar_system_id}} -> ["#{solar_system_id}"]
_ -> []
end)
route_hubs = (ping_system_ids ++ hubs) |> Enum.uniq()