Skip to content

Commit

Permalink
Revert "Update rawrequestid reference"
Browse files Browse the repository at this point in the history
This reverts commit 30e82b4.
  • Loading branch information
Jocelyn Cabildo authored and Jocelyn Cabildo committed Jan 16, 2025
1 parent 25176de commit 0c449cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def post(requestid, ministryrequestid):
rawrequestid = requestid
else:
rawrequestid = requestservice().getrawrequestidbyfoirequestid(requestid)
result = communicationwrapperservice().send_email(rawrequestid, ministryrequestid, applicantcorrespondencelog)
result = communicationwrapperservice().send_email(requestid, rawrequestid, ministryrequestid, applicantcorrespondencelog)
return {'status': result['success'], 'message': result['message'], 'id': result['identifier']}, 200
except BusinessException:
return "Error happened while saving applicant correspondence log", 500
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class communicationwrapperservice:
def send_email(self, requestid, rawrequestid, ministryrequestid, applicantcorrespondencelog):
# Save correspondence log based on request type
if ministryrequestid == 'None' or ministryrequestid is None or ("israwrequest" in applicantcorrespondencelog and applicantcorrespondencelog["israwrequest"]) is True:
result = applicantcorrespondenceservice().saveapplicantcorrespondencelogforrawrequest(requestid, applicantcorrespondencelog, AuthHelper.getuserid())
result = applicantcorrespondenceservice().saveapplicantcorrespondencelogforrawrequest(rawrequestid, applicantcorrespondencelog, AuthHelper.getuserid())
else:
result = applicantcorrespondenceservice().saveapplicantcorrespondencelog(requestid, ministryrequestid, applicantcorrespondencelog, AuthHelper.getuserid())

Expand Down

0 comments on commit 0c449cb

Please sign in to comment.