User filtered
This commit is contained in:
parent
3b9a5800a5
commit
a4c5e8185b
5 changed files with 59 additions and 8 deletions
|
|
@ -66,7 +66,7 @@ pub async fn index(
|
|||
|
||||
// Get all Users
|
||||
let users = UserOperator::new(state.clone())
|
||||
.list()
|
||||
.all()
|
||||
.await
|
||||
.context(UserSnafu)?;
|
||||
|
||||
|
|
@ -203,7 +203,7 @@ struct NewBookTemplate {
|
|||
pub async fn new(
|
||||
State(state): State<AppState>,
|
||||
) -> Result<impl axum::response::IntoResponse, AppStateError> {
|
||||
let users = UserOperator::new(state).list().await.context(UserSnafu)?;
|
||||
let users = UserOperator::new(state).all().await.context(UserSnafu)?;
|
||||
|
||||
Ok(NewBookTemplate { users })
|
||||
}
|
||||
|
|
@ -220,7 +220,7 @@ pub async fn edit(
|
|||
Path(id): Path<i32>,
|
||||
) -> Result<impl axum::response::IntoResponse, AppStateError> {
|
||||
let users = UserOperator::new(state.clone())
|
||||
.list()
|
||||
.all()
|
||||
.await
|
||||
.context(UserSnafu)?;
|
||||
let book = BookOperator::new(state)
|
||||
|
|
|
|||
Loading…
Reference in a new issue