From 6ecfe1ab826a8dcf7241520b41a92516664a2af3 Mon Sep 17 00:00:00 2001 From: charleswrayjr Date: Thu, 11 Sep 2025 22:38:48 -0500 Subject: [PATCH] Cleaning up the authentication.model.js file. --- src/models/authentication.model.js | 4 ---- 1 file changed, 4 deletions(-) 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 ); -- 2.43.0