]> PHS Git Server - phs-api.git/commitdiff
Cleaning up the authentication.model.js file.
authorcharleswrayjr <charleswrayjr@gmail.com>
Fri, 12 Sep 2025 03:38:48 +0000 (22:38 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Fri, 12 Sep 2025 03:38:48 +0000 (22:38 -0500)
src/models/authentication.model.js

index 85c5dbc847858b1d3ebefc72116d0d34fe8ce997..70d88a0338f995e91cb1c8ee4a1d3b099eb2ceed 100644 (file)
@@ -122,8 +122,6 @@ class Authentication extends Model {
    * @param {number|string} user_id - User ID
    * @param {string[]} [excludes=['password', 'password_salt']] - Fields to exclude from result
    * @returns {Promise<Authentication|null>} Authentication instance or null
-   * @throws {NotFoundError} If record not found
-   * @throws {TypeError} If user_id is invalid
    */
   static async find_by_user_id( user_id, excludes = ['password', 'password_salt'] ) {
     return await new Authentication().find_one( { user_id }, excludes );
@@ -134,8 +132,6 @@ class Authentication extends Model {
    * @param {string} password_reset_token - Password reset token
    * @param {string[]} [excludes=['password', 'password_salt']] - Fields to exclude from result
    * @returns {Promise<Authentication|null>} Authentication instance or null
-   * @throws {NotFoundError} If record not found
-   * @throws {TypeError} If password_reset_token is invalid
    */
   static async find_by_reset_token( password_reset_token, excludes = ['password', 'password_salt'] ) {
     return await new Authentication().find_one( { password_reset_token }, excludes );