Skip to content

Commit

Permalink
fix: cast open case json reference field to string (#2788)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikuke authored Feb 2, 2024
1 parent fe809f8 commit d0bd02c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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 @@ -37,7 +37,7 @@ def _prepare_top_level_dict(application: Application, case_records: List[dict])
{"Subject": "työllisyydenhoito"},
],
"PersonalData": "Sisältää erityisiä henkilötietoja",
"Reference": application.application_number,
"Reference": f"{application.application_number}",
"Records": case_records,
"Agents": [
{
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 @@ -329,7 +329,7 @@ def ahjo_open_case_top_level_dict(decided_application):
{"Subject": "työllisyydenhoito"},
],
"PersonalData": "Sisältää erityisiä henkilötietoja",
"Reference": application.application_number,
"Reference": f"{application.application_number}",
"Records": [],
"Agents": [
{
Expand Down

0 comments on commit d0bd02c

Please sign in to comment.