diff --git a/request-management-api/request_api/resources/applicantcorrespondence.py b/request-management-api/request_api/resources/applicantcorrespondence.py index 2f975532d..e5dc8c0a3 100644 --- a/request-management-api/request_api/resources/applicantcorrespondence.py +++ b/request-management-api/request_api/resources/applicantcorrespondence.py @@ -99,7 +99,7 @@ def post(requestid, ministryrequestid): else: rawrequestid = requestservice().getrawrequestidbyfoirequestid(requestid) result = communicationwrapperservice().send_email(requestid, rawrequestid, ministryrequestid, applicantcorrespondencelog) - return {'status': result['success'], 'message': result['message'], 'id': result['identifier']}, 200 + return {'status': result.success, 'message': result.message, 'id': result.identifier}, 200 except BusinessException: return "Error happened while saving applicant correspondence log", 500