File tree 1 file changed +3
-1
lines changed
quickstarts/email-users/functions
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,8 @@ async function sendWelcomeEmail(email, displayName) {
78
78
mailOptions . subject = `Welcome to ${ APP_NAME } !` ;
79
79
mailOptions . text = `Hey ${ displayName || '' } ! Welcome to ${ APP_NAME } . I hope you will enjoy our service.` ;
80
80
await mailTransport . sendMail ( mailOptions ) ;
81
- return console . log ( 'New welcome email sent to:' , email ) ;
81
+ console . log ( 'New welcome email sent to:' , email ) ;
82
+ return null ;
82
83
}
83
84
84
85
// Sends a goodbye email to the given user.
@@ -93,4 +94,5 @@ async function sendGoodbyeEmail(email, displayName) {
93
94
mailOptions . text = `Hey ${ displayName || '' } !, We confirm that we have deleted your ${ APP_NAME } account.` ;
94
95
await mailTransport . sendMail ( mailOptions ) ;
95
96
console . log ( 'Account deletion confirmation email sent to:' , email ) ;
97
+ return null ;
96
98
}
You can’t perform that action at this time.
0 commit comments