implement get single udpate

This commit is contained in:
mpostma
2021-03-06 10:51:52 +01:00
parent a9c7b73744
commit 7d28f8cff0
6 changed files with 38 additions and 8 deletions

View File

@ -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();