From: charleswrayjr Date: Fri, 12 Sep 2025 03:38:48 +0000 (-0500) Subject: Cleaning up the authentication.model.js file. X-Git-Url: https://git.phasecustomsoft.com/static/gitweb.css?a=commitdiff_plain;h=6ecfe1ab826a8dcf7241520b41a92516664a2af3;p=phs-api.git Cleaning up the authentication.model.js file. --- diff --git a/src/models/authentication.model.js b/src/models/authentication.model.js index 85c5dbc..70d88a0 100644 --- a/src/models/authentication.model.js +++ b/src/models/authentication.model.js @@ -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 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 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 );