We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c535652 commit 5f96cceCopy full SHA for 5f96cce
src/services/category.rs
@@ -28,6 +28,8 @@ impl Service {
28
/// It returns an error if:
29
///
30
/// * The user does not have the required permissions.
31
+ /// * The category name is empty.
32
+ /// * The category already exists.
33
/// * There is a database error.
34
pub async fn add_category(&self, category_name: &str, user_id: &UserId) -> Result<i64, ServiceError> {
35
let user = self.user_repository.get_compact(user_id).await?;
0 commit comments