Skip to content

Commit

Permalink
Revert Result
Browse files Browse the repository at this point in the history
  • Loading branch information
Jocelyn Cabildo authored and Jocelyn Cabildo committed Jan 10, 2025
1 parent 833a399 commit eaa492e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ 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"])
return communicationemailservice().send(template, 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
Expand Down

0 comments on commit eaa492e

Please sign in to comment.