Skip to content

Commit d3960d1

Browse files
fixes firebase#499
1 parent 75ff630 commit d3960d1

File tree

1 file changed

+3
-1
lines changed
  • quickstarts/email-users/functions

1 file changed

+3
-1
lines changed

quickstarts/email-users/functions/index.js

+3-1
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)