We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0bb7699 + a5dcc41 commit b6e19b9Copy full SHA for b6e19b9
2 files changed
functions/src/notifications/deliverNotifications.ts
@@ -66,7 +66,7 @@ const deliverEmailNotifications = async () => {
66
}
67
68
// Temporarily using email from the profile to test the non-auth issues
69
- const verifiedEmail = profile.email //await getVerifiedUserEmail(profileDoc.id)
+ const verifiedEmail = profile.email || profile.contactInfo?.publicEmail //await getVerifiedUserEmail(profileDoc.id)
70
if (!verifiedEmail) {
71
console.log(
72
`Skipping user ${profileDoc.id} because they have no verified email address`
functions/src/notifications/types.ts
@@ -68,4 +68,7 @@ export interface Profile {
email?: string
notificationFrequency?: Frequency
nextDigestAt?: FirebaseFirestore.Timestamp
+ contactInfo?: {
+ publicEmail?: string
73
+ }
74
0 commit comments