From 53ca5d18615f9df1b37986c2266493bcb99ebb21 Mon Sep 17 00:00:00 2001 From: Dave Samojlenko Date: Tue, 26 Mar 2024 09:55:07 -0400 Subject: [PATCH] Fix receipt in json downloads --- .../form-builder/[id]/responses/[statusFilter]/actions.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/(gcforms)/[locale]/(form administration)/form-builder/[id]/responses/[statusFilter]/actions.ts b/app/(gcforms)/[locale]/(form administration)/form-builder/[id]/responses/[statusFilter]/actions.ts index e1d20bba65..ccadd00d4b 100644 --- a/app/(gcforms)/[locale]/(form administration)/form-builder/[id]/responses/[statusFilter]/actions.ts +++ b/app/(gcforms)/[locale]/(form administration)/form-builder/[id]/responses/[statusFilter]/actions.ts @@ -237,21 +237,21 @@ export const getSubmissionsByFormat = async ({ }; case DownloadFormat.HTML_AGGREGATED: revalidate && revalidateNewTab(); - return htmlAggregatedTransform(formResponse, lang); + return await htmlAggregatedTransform(formResponse, lang); case DownloadFormat.HTML: revalidate && revalidateNewTab(); - return htmlTransform(formResponse); + return await htmlTransform(formResponse); case DownloadFormat.HTML_ZIPPED: { revalidate && revalidateNewTab(); - return zipTransform(formResponse, lang); + return await zipTransform(formResponse, lang); } case DownloadFormat.JSON: revalidate && revalidateNewTab(); return { - receipt: htmlAggregatedTransform(formResponse, lang), + receipt: await htmlAggregatedTransform(formResponse, lang), responses: jsonTransform(formResponse), };