Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some comments in the starters and example code #824

Merged
merged 2 commits into from
Oct 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading