diff --git a/request-management-api/request_api/services/communicationwrapperservice.py b/request-management-api/request_api/services/communicationwrapperservice.py index b3921f6e5..32ab5348f 100644 --- a/request-management-api/request_api/services/communicationwrapperservice.py +++ b/request-management-api/request_api/services/communicationwrapperservice.py @@ -27,7 +27,7 @@ def send_email(self,requestid, ministryrequestid, applicantcorrespondencelog): if result.success == True: # raw requests should never be fee emails so they would only get handled by else statement if self.__is_fee_processing(applicantcorrespondencelog["templateid"]) == True: - return self.__handle_fee_email(requestid, ministryrequestid, applicantcorrespondencelog, result) + return self.__handle_fee_email(requestid, ministryrequestid, applicantcorrespondencelog) else: if "emails" in applicantcorrespondencelog and len(applicantcorrespondencelog["emails"]) > 0: template = applicantcorrespondenceservice().gettemplatebyid(applicantcorrespondencelog["templateid"]) @@ -35,7 +35,7 @@ def send_email(self,requestid, ministryrequestid, applicantcorrespondencelog): return result - def __handle_fee_email(self,requestid, ministryrequestid, applicantcorrespondencelog, result): + def __handle_fee_email(self,requestid, ministryrequestid, applicantcorrespondencelog): if cfrfeeservice().getactivepayment(requestid, ministryrequestid) != None: requestservice().postfeeeventtoworkflow(requestid, ministryrequestid, "CANCELLED") _attributes = applicantcorrespondencelog["attributes"][0] if "attributes" in applicantcorrespondencelog else None