Skip to content

Commit

Permalink
fix: excluded full_application attachment (#3081)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikuke committed Jun 11, 2024
1 parent 128fae4 commit 2500943
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions backend/benefit/applications/services/ahjo_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,7 @@ def _prepare_case_records(

open_case_attachments = application.attachments.exclude(
attachment_type__in=[
AttachmentType.PDF_SUMMARY,
AttachmentType.FULL_APPLICATION,
AttachmentType.PDF_SUMMARY, # The main document is already added
AttachmentType.DECISION_TEXT_XML,
AttachmentType.DECISION_TEXT_SECRET_XML,
]
Expand Down
1 change: 0 additions & 1 deletion backend/benefit/applications/tests/test_ahjo_payload.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ def test_prepare_case_records(decided_application, settings):
open_case_attachments = application.attachments.exclude(
attachment_type__in=[
AttachmentType.PDF_SUMMARY,
AttachmentType.FULL_APPLICATION,
AttachmentType.DECISION_TEXT_XML,
AttachmentType.DECISION_TEXT_SECRET_XML,
]
Expand Down

0 comments on commit 2500943

Please sign in to comment.