Skip to content

Commit

Permalink
fix: attachment type in ahjo payload (#2868)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikuke authored Mar 5, 2024
1 parent d2bf279 commit daeb983
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion backend/benefit/applications/services/ahjo_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def _prepare_case_records(

document_record = _prepare_record(
"Hakemuksen Liite",
"liite",
"hakemuksen liite",
attachment.created_at.isoformat(),
[_prepare_record_document_dict(attachment)],
handler,
Expand Down
2 changes: 1 addition & 1 deletion backend/benefit/applications/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def ahjo_payload_record_for_attachment_update(
record = {
**record,
"Title": "Liite",
"Type": "liite",
"Type": "hakemuksen liite",
"VersionSeriesId": dummy_version_series_id,
"Documents": [],
"Agents": ahjo_payload_agents,
Expand Down
2 changes: 1 addition & 1 deletion backend/benefit/applications/tests/test_ahjo_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def test_prepare_case_records(decided_application, settings):
):
document_record = _prepare_record(
"Hakemuksen Liite",
"liite",
"hakemuksen liite",
attachment.created_at.isoformat(),
[_prepare_record_document_dict(attachment)],
handler,
Expand Down

0 comments on commit daeb983

Please sign in to comment.