Skip to content

Commit

Permalink
chore: Fix camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Oct 13, 2023
1 parent 0ab4f86 commit d496cbb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions api.planx.uk/saveAndReturn/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit d496cbb

Please sign in to comment.