Skip to content

Commit

Permalink
fix: exclude xml attachments from open case (#2871)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikuke committed Mar 7, 2024
1 parent 8fb25fd commit f00b4a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/benefit/applications/services/ahjo_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ def _prepare_case_records(
case_records.append(main_document_record)

for attachment in application.attachments.exclude(
attachment_type=AttachmentType.PDF_SUMMARY
attachment_type__in=[
AttachmentType.PDF_SUMMARY,
AttachmentType.DECISION_TEXT_XML,
AttachmentType.DECISION_TEXT_SECRET_XML,
]
):
attachment_version_series_id = (
pdf_summary.ahjo_version_series_id if is_update else None
Expand Down

0 comments on commit f00b4a1

Please sign in to comment.