Skip to content

Commit 509874c

Browse files
committed
Add blackhole domain to DEV_ALLOWED_DOMAINS in PostmarkEmailService
1 parent 22e6b89 commit 509874c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

backend/src/business/email/EmailService/PostmarkEmailService.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
import { ServerClient, TemplatedMessage } from 'postmark';
2+
import { MessageSendingResponse } from 'postmark/dist/client/models';
23
import isProduction from '../../utils/isProduction';
3-
import { EmailResult, EmailService, TemplatedEmailData } from './EmailService';
4-
import EmailStreamType from '../templates/EmailStreamType';
54
import required from '../../utils/required';
6-
import { MessageSendingResponse } from 'postmark/dist/client/models';
5+
import EmailStreamType from '../templates/EmailStreamType';
6+
import { EmailResult, EmailService, TemplatedEmailData } from './EmailService';
77

88
const POSTMARK_TOKEN = required(process.env.POSTMARK_TOKEN, 'POSTMARK_TOKEN');
99
const POSTMARK_SANDBOX_TOKEN = required(
1010
process.env.POSTMARK_SANDBOX_TOKEN,
1111
'POSTMARK_SANDBOX_TOKEN'
1212
);
1313

14-
const DEV_ALLOWED_DOMAINS = ['@1940s.nyc', '@bounce-testing.postmarkapp.com'];
14+
const DEV_ALLOWED_DOMAINS = [
15+
'@1940s.nyc',
16+
'@bounce-testing.postmarkapp.com',
17+
'blackhole.postmarkapp.com',
18+
];
1519

1620
const streamIds: Record<EmailStreamType, string> = {
1721
[EmailStreamType.TRANSACTIONAL]: 'outbound',

0 commit comments

Comments
 (0)