Skip to content

Commit

Permalink
fix: this undefined in local.js (not arrow function) (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
rombat committed Nov 14, 2023
1 parent 3f983f0 commit b2c35e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/auth/lib/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ module.exports.validate = async function (req, res) {
* @param res
* @return {*}
*/
module.exports.createResetPasswordToken = async function (req, res) {
module.exports.createResetPasswordToken = async (req, res) => {
const missingParams = getMissingParameters(req.body, ['email']);
if (missingParams.length > 0) {
return helpers.error(res, new Error(`missing parameter(s) : ${missingParams.join(', ')}`));
Expand Down

0 comments on commit b2c35e2

Please sign in to comment.