From d496cbb22fb2b51c6910b7433a86f2cf61963dc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dafydd=20Ll=C5=B7r=20Pearson?= Date: Fri, 13 Oct 2023 08:28:38 +0100 Subject: [PATCH] chore: Fix camelCase --- api.planx.uk/saveAndReturn/utils.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/api.planx.uk/saveAndReturn/utils.ts b/api.planx.uk/saveAndReturn/utils.ts index 2464290db0..b9409058e0 100644 --- a/api.planx.uk/saveAndReturn/utils.ts +++ b/api.planx.uk/saveAndReturn/utils.ts @@ -92,7 +92,10 @@ const validateSingleSessionRequest = async ( try { const query = gql` query ValidateSingleSessionRequest($sessionId: uuid!) { - lowcal_sessions(where: { id: { _eq: $sessionId } }, limit: 1) { + lowcalSessions: lowcal_sessions( + where: { id: { _eq: $sessionId } } + limit: 1 + ) { id data created_at @@ -112,8 +115,8 @@ const validateSingleSessionRequest = async ( const client = getClientForTemplate(template); const headers = getSaveAndReturnPublicHeaders(sessionId, email); const { - lowcal_sessions: [session], - } = await client.request<{ lowcal_sessions: LowCalSession[] }>( + lowcalSessions: [session], + } = await client.request<{ lowcalSessions: LowCalSession[] }>( query, { sessionId }, headers,