mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-30 08:44:27 +01:00
typo in route/health.rs: HealtBody -> HealthBody
This commit is contained in:
parent
d30874c912
commit
2d2c933611
@ -45,14 +45,14 @@ async fn set_unhealthy(data: web::Data<Data>) -> Result<HttpResponse, ResponseEr
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, Clone)]
|
#[derive(Deserialize, Clone)]
|
||||||
struct HealtBody {
|
struct HealthBody {
|
||||||
health: bool,
|
health: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[put("/health", wrap = "Authentication::Private")]
|
#[put("/health", wrap = "Authentication::Private")]
|
||||||
async fn change_healthyness(
|
async fn change_healthyness(
|
||||||
data: web::Data<Data>,
|
data: web::Data<Data>,
|
||||||
body: web::Json<HealtBody>,
|
body: web::Json<HealthBody>,
|
||||||
) -> Result<HttpResponse, ResponseError> {
|
) -> Result<HttpResponse, ResponseError> {
|
||||||
if body.health {
|
if body.health {
|
||||||
set_healthy(data).await
|
set_healthy(data).await
|
||||||
|
Loading…
Reference in New Issue
Block a user