From d0bd02ca1d1710e8a01a5676ba8ca131efcff99b Mon Sep 17 00:00:00 2001 From: rikuke <33894149+rikuke@users.noreply.github.com> Date: Fri, 2 Feb 2024 11:07:10 +0200 Subject: [PATCH] fix: cast open case json reference field to string (#2788) --- backend/benefit/applications/services/ahjo_payload.py | 2 +- backend/benefit/applications/tests/conftest.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/benefit/applications/services/ahjo_payload.py b/backend/benefit/applications/services/ahjo_payload.py index c1d18c6885..e403c13659 100644 --- a/backend/benefit/applications/services/ahjo_payload.py +++ b/backend/benefit/applications/services/ahjo_payload.py @@ -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": [ { diff --git a/backend/benefit/applications/tests/conftest.py b/backend/benefit/applications/tests/conftest.py index b0cec3cbab..1b69bc9399 100755 --- a/backend/benefit/applications/tests/conftest.py +++ b/backend/benefit/applications/tests/conftest.py @@ -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": [ {