mirror of
https://github.com/wanderer-industries/wanderer
synced 2026-08-26 15:56:32 +00:00
fix(core): fixed pings issue
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user