File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
quickstarts/email-users/functions Expand file tree Collapse file tree 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) {
7878 mailOptions . subject = `Welcome to ${ APP_NAME } !` ;
7979 mailOptions . text = `Hey ${ displayName || '' } ! Welcome to ${ APP_NAME } . I hope you will enjoy our service.` ;
8080 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 ;
8283}
8384
8485// Sends a goodbye email to the given user.
@@ -93,4 +94,5 @@ async function sendGoodbyeEmail(email, displayName) {
9394 mailOptions . text = `Hey ${ displayName || '' } !, We confirm that we have deleted your ${ APP_NAME } account.` ;
9495 await mailTransport . sendMail ( mailOptions ) ;
9596 console . log ( 'Account deletion confirmation email sent to:' , email ) ;
97+ return null ;
9698}
You can’t perform that action at this time.
0 commit comments