diff --git a/legal-api/src/legal_api/core/filing_helper.py b/legal-api/src/legal_api/core/filing_helper.py index 81df3557dc..3fbed32ed3 100644 --- a/legal-api/src/legal_api/core/filing_helper.py +++ b/legal-api/src/legal_api/core/filing_helper.py @@ -24,7 +24,7 @@ def is_special_resolution_correction_by_filing_json(filing: Dict): # Note this relies on the filing data once. This is acceptable inside of the filer (which runs once) # and emailer (runs on PAID which is before the filer and runs on COMPLETED). # For filing data that persists in the database, attempt to use the meta_data instead. - sr_correction_keys = ['rulesInResolution', 'resolution', 'rulesFileKey', 'rulesMemorandumKey', + sr_correction_keys = ['rulesInResolution', 'resolution', 'rulesFileKey', 'memorandumFileKey', 'memorandumInResolution', 'cooperativeAssociationType'] for key in sr_correction_keys: if key in filing.get('correction'): diff --git a/queue_services/entity-emailer/src/entity_emailer/email_processors/correction_notification.py b/queue_services/entity-emailer/src/entity_emailer/email_processors/correction_notification.py index 6e1fee7ba1..9cc738da27 100644 --- a/queue_services/entity-emailer/src/entity_emailer/email_processors/correction_notification.py +++ b/queue_services/entity-emailer/src/entity_emailer/email_processors/correction_notification.py @@ -141,7 +141,7 @@ def _get_pdfs( attach_order += 1 elif is_cp_special_resolution: rules_changed = bool(filing.filing_json['filing']['correction'].get('rulesFileKey')) - memorandum_changed = bool(filing.filing_json['filing']['correction'].get('rulesMemorandumKey')) + memorandum_changed = bool(filing.filing_json['filing']['correction'].get('memorandumFileKey')) pdfs = get_completed_pdfs(token, business, filing, name_changed, rules_changed=rules_changed, memorandum_changed=memorandum_changed) return pdfs diff --git a/queue_services/entity-emailer/src/entity_emailer/email_templates/CP-SR-CRCTN-COMPLETED.html b/queue_services/entity-emailer/src/entity_emailer/email_templates/CP-SR-CRCTN-COMPLETED.html index 87ed83bf90..992778e09d 100644 --- a/queue_services/entity-emailer/src/entity_emailer/email_templates/CP-SR-CRCTN-COMPLETED.html +++ b/queue_services/entity-emailer/src/entity_emailer/email_templates/CP-SR-CRCTN-COMPLETED.html @@ -31,7 +31,7 @@ {% if filing['rulesFileKey'] %}
  • Certified Rules
  • {% endif %} - {% if filing['rulesMemorandumKey'] %} + {% if filing['memorandumFileKey'] %}
  • Certified Memorandum
  • {% endif %}