import Mailjet from 'node-mailjet';
import { SendOtpUtils } from './abstract_service/send_otp_utils';
export class SendEmailOtpUtils implements SendOtpUtils {
async sendOtp(email: string, otp: number) {
const mailjetClient = Mailjet.apiConnect(
process.env.EMAIL_API_KEY,
process.env.EMAIL_SECRET_KEY,
);
.
.
.
}
}
I'm facing an exception "TypeError: Cannot read properties of undefined (reading 'apiConnect')"
I'm facing an exception "TypeError: Cannot read properties of undefined (reading 'apiConnect')"