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 9334667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edx_ace/channel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def get_channel_for_message(channel_type, message):

if channel_type == ChannelType.EMAIL:
if message.options.get('override_default_channel'):
channel_names = [settings.ACE_CHANNEL_TRANSACTIONAL_EMAIL]
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 9334667

Please sign in to comment.