-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix recipient_list format for Email Channel in frontend to match back…
…end (#385) Signed-off-by: Mohammad Qureshi <[email protected]>
- Loading branch information
Showing
4 changed files
with
17 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -154,7 +154,10 @@ describe('constructs and deconstructs email objects', () => { | |
'recipient-group-id-2', | ||
'recipient-group-id-3', | ||
], | ||
recipient_list: ['[email protected]', '[email protected]'], | ||
recipient_list: [ | ||
{ recipient: '[email protected]' }, | ||
{ recipient: '[email protected]' }, | ||
], | ||
}; | ||
|
||
it('constructs email objects', () => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,11 @@ const mockEmail: ChannelItemType = { | |
is_enabled: true, | ||
email: { | ||
email_account_id: 'dj8etXkBCzVy9Vy-nsiL', | ||
recipient_list: ['[email protected]', '[email protected]', '[email protected]'], | ||
recipient_list: [ | ||
{ recipient: '[email protected]' }, | ||
{ recipient: '[email protected]' }, | ||
{ recipient: '[email protected]' }, | ||
], | ||
email_group_id_list: [ | ||
'1l8hq3kB0XwiBlEbanSo', | ||
'dz8etXkBCzVy9Vy-0sgh', | ||
|
@@ -76,7 +80,11 @@ const mockEmailWithSES: ChannelItemType = { | |
is_enabled: true, | ||
email: { | ||
email_account_id: 'dj8etXkBCzVy9Vy-nsiL', | ||
recipient_list: ['[email protected]', '[email protected]', '[email protected]'], | ||
recipient_list: [ | ||
{ recipient: '[email protected]' }, | ||
{ recipient: '[email protected]' }, | ||
{ recipient: '[email protected]' }, | ||
], | ||
email_group_id_list: [ | ||
'1y8ud3xO0KjvOyRonaFb', | ||
'qm8rgKxOPmIl9Il-0ftu', | ||
|