fix
This commit is contained in:
parent
31649314a5
commit
05d3848602
8 changed files with 102 additions and 91 deletions
|
@ -83,7 +83,7 @@ pub async fn passwd_route(passwd: Json<PasswdData>, mut u: User) -> FallibleApiR
|
|||
pub async fn users_route(u: User) -> FallibleApiResponse {
|
||||
check_admin!(u);
|
||||
|
||||
let users: Vec<_> = to_api(&User::find(doc! {}, None).await.unwrap()).await;
|
||||
let users: Vec<_> = to_api(&User::find_all().await.unwrap()).await;
|
||||
|
||||
Ok(json!({"users": users}))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue