Skip to content

Commit 5f96cce

Browse files
committed
fix: update doc
1 parent c535652 commit 5f96cce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/services/category.rs

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ impl Service {
2828
/// It returns an error if:
2929
///
3030
/// * The user does not have the required permissions.
31+
/// * The category name is empty.
32+
/// * The category already exists.
3133
/// * There is a database error.
3234
pub async fn add_category(&self, category_name: &str, user_id: &UserId) -> Result<i64, ServiceError> {
3335
let user = self.user_repository.get_compact(user_id).await?;

0 commit comments

Comments
 (0)