Skip to content

Commit

Permalink
fix: update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
pcarles committed Nov 12, 2023
1 parent c535652 commit 5f96cce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/category.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ impl Service {
/// It returns an error if:
///
/// * The user does not have the required permissions.
/// * The category name is empty.
/// * The category already exists.
/// * There is a database error.
pub async fn add_category(&self, category_name: &str, user_id: &UserId) -> Result<i64, ServiceError> {
let user = self.user_repository.get_compact(user_id).await?;
Expand Down

0 comments on commit 5f96cce

Please sign in to comment.