Update sendEmail.ts

Switched sendEmail typing to nodemailer's SendMailOptions
This commit is contained in:
Chris McGrane
2023-01-18 10:27:26 -05:00
committed by GitHub
parent 4851b6bae0
commit 8ae0d045e3

View File

@@ -1,7 +1,7 @@
import { Message } from './types';
import { SendMailOptions } from 'nodemailer';
import logger from '../utilities/logger';
export default async function sendEmail(message: Message): Promise<unknown> {
export default async function sendEmail(message: SendMailOptions): Promise<unknown> {
let result;
try {
const email = await this.email;