PATCH experimental-features also returns the route type rather than internal type

This commit is contained in:
Louis Dureuil 2025-01-14 13:48:19 +01:00
parent 87ea080c10
commit 0c10063a87
No known key found for this signature in database

View File

@ -205,6 +205,7 @@ async fn patch_features(
&req, &req,
); );
index_scheduler.put_runtime_features(new_features)?; index_scheduler.put_runtime_features(new_features)?;
let new_features: RuntimeTogglableFeatures = new_features.into();
debug!(returns = ?new_features, "Patch features"); debug!(returns = ?new_features, "Patch features");
Ok(HttpResponse::Ok().json(new_features)) Ok(HttpResponse::Ok().json(new_features))
} }