From c1bf81e71b710a4dfaca80b0c76c58364183c1a1 Mon Sep 17 00:00:00 2001 From: Henry Oforeh Date: Wed, 23 Oct 2024 08:51:15 -0700 Subject: [PATCH] [MDS-6114] Fix bug on additional contacts (#3275) fix bug on additional contacts --- services/core-api/app/api/services/ams_api_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/core-api/app/api/services/ams_api_service.py b/services/core-api/app/api/services/ams_api_service.py index 134ba17ca7..f9d558ffa8 100644 --- a/services/core-api/app/api/services/ams_api_service.py +++ b/services/core-api/app/api/services/ams_api_service.py @@ -323,7 +323,7 @@ def create_new_ams_authorization(cls, # Dynamically add additional contacts as contact1, contact2, etc. if(len(contacts)) > 1: for i, contact in enumerate(contacts[1:], start=1): - contact_key = f'contact{i + 1}' + contact_key = f'contact{i}' ams_authorization_data[contact_key] = cls.__set_additional_contact_details(contact) payload = json.dumps(ams_authorization_data) @@ -487,7 +487,7 @@ def create_amendment_ams_authorization(cls, # Dynamically add additional contacts as contact1, contact2, etc. if (len(contacts)) > 1: for i, contact in enumerate(contacts[1:], start=1): - contact_key = f'contact{i + 1}' + contact_key = f'contact{i}' ams_authorization_data[contact_key] = cls.__set_additional_contact_details(contact) payload = json.dumps(ams_authorization_data)