diff --git a/queue_services/entity-emailer/q_cli.py b/queue_services/entity-emailer/q_cli.py index d1011877a..a647a27bc 100755 --- a/queue_services/entity-emailer/q_cli.py +++ b/queue_services/entity-emailer/q_cli.py @@ -40,6 +40,7 @@ affiliation_type: Final = 'bc.registry.affiliation' dissolution_type: Final = 'bc.registry.dissolution' bn: Final = 'businessNumber' +nr_notification: Final = 'bc.registry.names.request' async def run(loop, email_info): # pylint: disable=too-many-locals @@ -90,7 +91,7 @@ def subscription_options(): functools.partial(signal_handler, sig_loop=loop, sig_nc=nc, task=close) ) - if email_info['type'] in [affiliation_type, dissolution_type]: + if email_info['type'] in [affiliation_type, dissolution_type, nr_notification]: payload = email_info else: payload = {'email': email_info} @@ -122,7 +123,7 @@ def subscription_options(): identifier = arg elif opt in ('-n', '--name'): name = arg - if not etype or (etype not in [affiliation_type, dissolution_type, bn] and not all([fid, etype, option])): + if not etype or (etype not in [affiliation_type, dissolution_type, bn, nr_notification] and not all([fid, etype, option])): print('q_cli.py -f -t -o