Skip to content

Commit

Permalink
Fix some comments in the starters and example code (#824)
Browse files Browse the repository at this point in the history
Co-authored-by: Elad Kaplan <[email protected]>
  • Loading branch information
mrothNET and kaplanelad authored Oct 13, 2024
1 parent 7a5232c commit 9a84692
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions examples/demo/src/models/users.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ impl super::_entities::users::Model {
user.ok_or_else(|| ModelError::EntityNotFound)
}

/// /// finds a user by the provided reset token
/// finds a user by the provided reset token
///
/// # Errors
///
Expand Down Expand Up @@ -286,7 +286,8 @@ impl super::_entities::users::ActiveModel {
/// updates it in the database.
///
/// This method hashes the provided password and sets it as the new password
/// for the user.
/// for the user.
///
/// # Errors
///
/// when has DB query error or could not hashed the given password
Expand Down
5 changes: 3 additions & 2 deletions starters/rest-api/src/models/users.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ impl super::_entities::users::Model {
user.ok_or_else(|| ModelError::EntityNotFound)
}

/// /// finds a user by the provided reset token
/// finds a user by the provided reset token
///
/// # Errors
///
Expand Down Expand Up @@ -279,7 +279,8 @@ impl super::_entities::users::ActiveModel {
/// updates it in the database.
///
/// This method hashes the provided password and sets it as the new password
/// for the user.
/// for the user.
///
/// # Errors
///
/// when has DB query error or could not hashed the given password
Expand Down
5 changes: 3 additions & 2 deletions starters/saas/src/models/users.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ impl super::_entities::users::Model {
user.ok_or_else(|| ModelError::EntityNotFound)
}

/// /// finds a user by the provided reset token
/// finds a user by the provided reset token
///
/// # Errors
///
Expand Down Expand Up @@ -279,7 +279,8 @@ impl super::_entities::users::ActiveModel {
/// updates it in the database.
///
/// This method hashes the provided password and sets it as the new password
/// for the user.
/// for the user.
///
/// # Errors
///
/// when has DB query error or could not hashed the given password
Expand Down

0 comments on commit 9a84692

Please sign in to comment.