From 067adabf9f1c639f53df1794bc0b6aae53de4e40 Mon Sep 17 00:00:00 2001 From: Jacob Penner Date: Thu, 19 Sep 2024 12:49:01 -0400 Subject: [PATCH] fixed oopsy --- .../services/simple_forms_api/s3/submission_archive_builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/simple_forms_api/app/services/simple_forms_api/s3/submission_archive_builder.rb b/modules/simple_forms_api/app/services/simple_forms_api/s3/submission_archive_builder.rb index d1c1e94e8d8..c5641a4f54e 100644 --- a/modules/simple_forms_api/app/services/simple_forms_api/s3/submission_archive_builder.rb +++ b/modules/simple_forms_api/app/services/simple_forms_api/s3/submission_archive_builder.rb @@ -46,7 +46,7 @@ def valid_submission_data?(data) def process_submission_files write_pdf - write_attachments unless attachments && attachments.empty? + write_attachments if attachments&.any? write_manifest if include_manifest write_metadata rescue => e