mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
implement get single udpate
This commit is contained in:
parent
a9c7b73744
commit
7d28f8cff0
6 changed files with 38 additions and 8 deletions
|
@ -133,7 +133,7 @@ async fn get_update_status(
|
|||
data: web::Data<Data>,
|
||||
path: web::Path<UpdateParam>,
|
||||
) -> Result<HttpResponse, ResponseError> {
|
||||
let result = data.get_update_status(&path.index_uid, path.update_id);
|
||||
let result = data.get_update_status(&path.index_uid, path.update_id).await;
|
||||
match result {
|
||||
Ok(Some(meta)) => {
|
||||
let json = serde_json::to_string(&meta).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue