Skip to content

Commit 7de3b2f

Browse files
authored
Merge pull request #19822 from mozilla/FXA-12808
task(auth-bounce-handler): Add fallback for unknown bounce types
2 parents 866e34d + 3149c39 commit 7de3b2f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/fxa-shared/db/models/auth/email-bounce.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ export class EmailBounce extends BaseAuthModel {
6262
try {
6363
await EmailBounce.callProcedure(
6464
Proc.CreateEmailBounce,
65-
email,
66-
templateName,
67-
BOUNCE_TYPES[bounceType],
68-
BOUNCE_SUB_TYPES[bounceSubType],
65+
email || '',
66+
templateName || 'unknown',
67+
BOUNCE_TYPES[bounceType] || BOUNCE_TYPES['__fxa__unmapped'],
68+
BOUNCE_SUB_TYPES[bounceSubType] || BOUNCE_TYPES['__fxa__unmapped'],
6969
Date.now(),
7070
(diagnosticCode ?? '').substring(0, 255)
7171
);

0 commit comments

Comments
 (0)