Merge pull request #381 from curquiza/update-index-httpstatus

Change HTTP status of update index route
This commit is contained in:
Clément Renault 2019-12-08 17:53:01 +01:00 committed by GitHub
commit 225f5a172d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -267,7 +267,7 @@ pub async fn update_index(mut ctx: Context<Data>) -> SResult<Response> {
}; };
Ok(tide::response::json(response_body) Ok(tide::response::json(response_body)
.with_status(StatusCode::ACCEPTED) .with_status(StatusCode::OK)
.into_response()) .into_response())
} }