We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 839a00d commit 0ac5f9bCopy full SHA for 0ac5f9b
src/web/api/server/v1/contexts/category/handlers.rs
@@ -26,7 +26,7 @@ use crate::web::api::server::v1::responses::{self};
26
/// It returns an error if there is a database error.
27
#[allow(clippy::unused_async)]
28
pub async fn get_all_handler(State(app_data): State<Arc<AppData>>) -> Response {
29
- match app_data.category_repository.get_all().await {
+ match app_data.category_service.get_categories().await {
30
Ok(categories) => {
31
let categories: Vec<Category> = categories.into_iter().map(Category::from).collect();
32
Json(responses::OkResponseData { data: categories }).into_response()
0 commit comments