enable fallback for non initialized node table

This commit is contained in:
Christoph Kluge
2026-01-23 17:45:44 +01:00
parent 49938bcef8
commit 436194e46d

View File

@@ -684,10 +684,10 @@ func (r *NodeRepository) GetNodesForList(
hasNextPage = len(nextNodes) == 1 hasNextPage = len(nextNodes) == 1
} }
// Fallback, ignores stateFilter // Fallback for non-init'd node table in DB; Ignores stateFilter
// if countNodes == 0 { if stateFilter == "all" && countNodes == 0 {
// nodes, countNodes, hasNextPage = getNodesFromTopol(cluster, subCluster, nodeFilter, page) nodes, countNodes, hasNextPage = getNodesFromTopol(cluster, subCluster, nodeFilter, page)
// } }
return nodes, stateMap, countNodes, hasNextPage, nil return nodes, stateMap, countNodes, hasNextPage, nil
} }