User filtered

This commit is contained in:
gabatxo1312 2026-01-30 14:24:00 +01:00
commit a4c5e8185b
No known key found for this signature in database
5 changed files with 59 additions and 8 deletions

View file

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