diff --git a/nym-api/src/nym_nodes/handlers/unstable/mod.rs b/nym-api/src/nym_nodes/handlers/unstable/mod.rs index add55ec427..a9110a599d 100644 --- a/nym-api/src/nym_nodes/handlers/unstable/mod.rs +++ b/nym-api/src/nym_nodes/handlers/unstable/mod.rs @@ -81,7 +81,7 @@ struct NodesParamsWithRole { role: Option, semver_compatibility: Option, - no_legacy: bool, + no_legacy: Option, page: Option, per_page: Option, } @@ -89,7 +89,7 @@ struct NodesParamsWithRole { #[derive(Debug, Deserialize, utoipa::IntoParams)] struct NodesParams { semver_compatibility: Option, - no_legacy: bool, + no_legacy: Option, page: Option, per_page: Option, } diff --git a/nym-api/src/nym_nodes/handlers/unstable/skimmed.rs b/nym-api/src/nym_nodes/handlers/unstable/skimmed.rs index df263d2e06..53dace0e09 100644 --- a/nym-api/src/nym_nodes/handlers/unstable/skimmed.rs +++ b/nym-api/src/nym_nodes/handlers/unstable/skimmed.rs @@ -143,7 +143,7 @@ where ); // 5. if we allow legacy nodes, repeat the procedure for them, otherwise return just nym-nodes - if query_params.no_legacy { + if let Some(true) = query_params.no_legacy { // min of all caches let refreshed_at = refreshed_at([ rewarded_set.timestamp(),