await sendEmail (req.body.email, this.verificationCode) arroja un error:
this.verificationCode = indefinido
¿Cómo puedo arreglar esto?
class VerificationCodeController{ constructor(){ this.verificationCode = generateCode() } async sendCode(req, res){ await sendEmail(req.body.email, this.verificationCode) return res.json(responseCreator.response(this.verificationCode)); } }