Fix Gaiia: subnet -> ipRange on NetworkSiteIpBlock

This commit is contained in:
Graham McIntire 2026-02-14 16:16:44 -06:00
parent e3c730a8e9
commit b8a737ddf4
2 changed files with 3 additions and 2 deletions

View file

@ -73,7 +73,8 @@ defmodule Towerops.Gaiia.Client do
ipBlocks(first: 100) {
edges {
node {
subnet
id
ipRange
}
}
}

View file

@ -99,7 +99,7 @@ defmodule Towerops.Gaiia.Sync do
defp map_network_site(node) do
ip_block_edges = get_in(node, ["ipBlocks", "edges"]) || []
ip_blocks = Enum.map(ip_block_edges, & &1["node"]["subnet"])
ip_blocks = Enum.map(ip_block_edges, & &1["node"]["ipRange"])
%{
gaiia_id: node["id"],