Skip to content

Commit afa0d89

Browse files
committed
fix: argument send mail
1 parent 0e98585 commit afa0d89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/config/email.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ class EmailProvider {
2929
private mailOptions: nodemailer.SendMailOptions | undefined
3030

3131
public send = (
32-
to: string[],
32+
to: string | string[],
3333
subject: string,
3434
template: string
3535
): void | string[] => {
3636
const dest: string = Array.isArray(to) ? to.join(',') : to
3737
const text: string = template
38+
3839
// send an e-mail
3940
this.sendMail(dest, subject, text)
4041
}

0 commit comments

Comments
 (0)