Skip to content

Commit

Permalink
Ahjo decision debug and fix (#2840)
Browse files Browse the repository at this point in the history
* fix: prepare_headers parameters

* feat: log more info of downloaded attachments
  • Loading branch information
rikuke authored Feb 16, 2024
1 parent 132bd15 commit 4b40bac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def get(self, request, *args, **kwargs):
"", # Optional user backend
Operation.READ,
attachment,
additional_information="attachment was sent to AHJO!",
additional_information=f"attachment {attachment.attachment_file} \
of type {attachment.attachment_type} was sent to AHJO!",
)
return self._prepare_file_response(attachment)

Expand Down
2 changes: 1 addition & 1 deletion backend/benefit/applications/services/ahjo_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ def send_decision_proposal_to_ahjo(application_id: uuid.UUID):
ahjo_token = get_token()
headers = prepare_headers(
ahjo_token.access_token,
application.id,
application,
AhjoRequestType.SEND_DECISION_PROPOSAL,
)
delete_existing_xml_attachments(application)
Expand Down

0 comments on commit 4b40bac

Please sign in to comment.