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 () => {
6666 }
6767
6868 // 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)
7070 if ( ! verifiedEmail ) {
7171 console . log (
7272 `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 {
6868 email ?: string
6969 notificationFrequency ?: Frequency
7070 nextDigestAt ?: FirebaseFirestore . Timestamp
71+ contactInfo ?: {
72+ publicEmail ?: string
73+ }
7174}
You can’t perform that action at this time.
0 commit comments