diff --git a/api/src/Feature.Form.Submissions/GetByIdV2/Endpoint.cs b/api/src/Feature.Form.Submissions/GetByIdV2/Endpoint.cs index 1309e14fd..af5d2b8a2 100644 --- a/api/src/Feature.Form.Submissions/GetByIdV2/Endpoint.cs +++ b/api/src/Feature.Form.Submissions/GetByIdV2/Endpoint.cs @@ -33,6 +33,7 @@ WITH submissions AS (SELECT psi."Id" AS "SubmissionId", 'PSI' AS "FormType", 'PSI' AS "FormCode", + psi."FormName" as "FormName", psi."PollingStationId", psi."MonitoringObserverId", psi."Answers", @@ -55,6 +56,7 @@ UNION ALL fs."Id" AS "SubmissionId", f."FormType" AS "FormType", f."Code" AS "FormCode", + f."FormName" as "FormName", fs."PollingStationId", fs."MonitoringObserverId", fs."Answers", @@ -94,6 +96,7 @@ UNION ALL s."TimeSubmitted", s."FormCode", s."FormType", + s."FormName", ps."Id" AS "PollingStationId", ps."Level1", ps."Level2",