From 2b31ac7c3fa329aa493885ae646aeef17b5f3140 Mon Sep 17 00:00:00 2001 From: Michael Roth Date: Fri, 11 Oct 2024 14:03:46 +0200 Subject: [PATCH] Fix some comments in the starters and example code --- examples/demo/src/models/users.rs | 5 +++-- starters/rest-api/src/models/users.rs | 5 +++-- starters/saas/src/models/users.rs | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/examples/demo/src/models/users.rs b/examples/demo/src/models/users.rs index 40e35678d..bd2e3f2c3 100644 --- a/examples/demo/src/models/users.rs +++ b/examples/demo/src/models/users.rs @@ -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 /// @@ -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 diff --git a/starters/rest-api/src/models/users.rs b/starters/rest-api/src/models/users.rs index 510802e0b..1d1c8cabc 100644 --- a/starters/rest-api/src/models/users.rs +++ b/starters/rest-api/src/models/users.rs @@ -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 /// @@ -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 diff --git a/starters/saas/src/models/users.rs b/starters/saas/src/models/users.rs index 510802e0b..1d1c8cabc 100644 --- a/starters/saas/src/models/users.rs +++ b/starters/saas/src/models/users.rs @@ -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 /// @@ -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