File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const transport = createTransport({
14
14
requireTLS : true
15
15
} )
16
16
17
- export const sendRegMail = async ( email , username ) => transport . sendMail ( {
17
+ export const sendRegMail = async ( email : string , username : string ) => transport . sendMail ( {
18
18
from : process . env . SMTP_USER ,
19
19
to : email ,
20
20
subject : "Registration Confirmation" ,
@@ -74,11 +74,12 @@ body {
74
74
} , ( err , info ) => {
75
75
if ( err ) {
76
76
console . error ( err ) ;
77
+ return
77
78
}
78
79
console . log ( info . response ) ;
79
80
} )
80
81
81
- export const sendLoginMail = async ( email , username ) => transport . sendMail ( {
82
+ export const sendLoginMail = async ( email : string , username : string ) => transport . sendMail ( {
82
83
from : process . env . SMTP_USER ,
83
84
to : email ,
84
85
subject : "New login from your account" ,
@@ -138,6 +139,7 @@ body {
138
139
} , ( err , info ) => {
139
140
if ( err ) {
140
141
console . error ( err ) ;
142
+ return
141
143
}
142
144
console . log ( info . response ) ;
143
145
} )
You can’t perform that action at this time.
0 commit comments