fix web show dup entry for same machine (#526)

This commit is contained in:
Sijie.Sun
2024-12-21 11:51:01 -05:00
committed by GitHub
parent 4e5915f98e
commit 4cf61f0d4a
7 changed files with 82 additions and 30 deletions
+3 -1
View File
@@ -121,7 +121,9 @@ impl RestfulServer {
return Err((StatusCode::UNAUTHORIZED, other_error("No such user").into()));
};
let machines = client_mgr.list_machine_by_token(user.tokens[0].clone());
let machines = client_mgr
.list_machine_by_token(user.tokens[0].clone())
.await;
Ok(GetSummaryJsonResp {
device_count: machines.len() as u32,