Skip to content

Commit

Permalink
feat: updated logic to specify channel by name
Browse files Browse the repository at this point in the history
  • Loading branch information
sohailfatima committed Oct 14, 2024
1 parent e221950 commit 3bc2b22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edx_ace/channel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ def get_channel_for_message(channel_type, message):
channel_names = []

if channel_type == ChannelType.EMAIL:
if message.options.get('override_default_channel'):
channel_names = [settings.ACE_CHANNEL_TRANSACTIONAL_EMAIL]
if 'override_default_channel' in message.options:
channel_names = [message.options.get('override_default_channel')]
elif message.options.get('transactional'):
channel_names = [settings.ACE_CHANNEL_TRANSACTIONAL_EMAIL, settings.ACE_CHANNEL_DEFAULT_EMAIL]
else:
Expand Down

0 comments on commit 3bc2b22

Please sign in to comment.