File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
functions/src/notifications Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ const deliverEmailNotifications = async () => {
66
66
}
67
67
68
68
// Temporarily using email from the profile to test the non-auth issues
69
- const verifiedEmail = profile . email //await getVerifiedUserEmail(profileDoc.id)
69
+ const verifiedEmail = profile . email || profile . contactInfo ?. publicEmail //await getVerifiedUserEmail(profileDoc.id)
70
70
if ( ! verifiedEmail ) {
71
71
console . log (
72
72
`Skipping user ${ profileDoc . id } because they have no verified email address`
Original file line number Diff line number Diff line change @@ -68,4 +68,7 @@ export interface Profile {
68
68
email ?: string
69
69
notificationFrequency ?: Frequency
70
70
nextDigestAt ?: FirebaseFirestore . Timestamp
71
+ contactInfo ?: {
72
+ publicEmail ?: string
73
+ }
71
74
}
You can’t perform that action at this time.
0 commit comments