From 0804f911ef1bb2a3464a37f03f4c7bb88d67707d Mon Sep 17 00:00:00 2001 From: Jacob Penner Date: Thu, 12 Sep 2024 14:15:04 -0400 Subject: [PATCH] fix random thing --- .../app/services/simple_forms_api/s3/submission_archiver.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/simple_forms_api/app/services/simple_forms_api/s3/submission_archiver.rb b/modules/simple_forms_api/app/services/simple_forms_api/s3/submission_archiver.rb index 96d68deda9c..bb3c169213f 100644 --- a/modules/simple_forms_api/app/services/simple_forms_api/s3/submission_archiver.rb +++ b/modules/simple_forms_api/app/services/simple_forms_api/s3/submission_archiver.rb @@ -98,7 +98,7 @@ def fetch_submission_pdf end def submission_pdf_filename - @submission_pdf_filename ||= "form_#{submission.form_data['form_number']}.pdf" + @submission_pdf_filename ||= "form_#{JSON.parse(submission.form_data)['form_number']}.pdf" end def sign_s3_file_url(pdf)