Skip to content

Commit

Permalink
fix: Point to lowcal_sessions table
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Nov 14, 2023
1 parent 521e02d commit abf4887
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions api.planx.uk/saveAndReturn/resumeApplication.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ describe("Resume Application endpoint", () => {

queryMock.mockQuery({
name: "ValidateRequest",
data: { teams: null, sessions: null },
data: { teams: null, lowcalSessions: null },
variables: body.payload,
});

Expand All @@ -251,7 +251,7 @@ describe("Resume Application endpoint", () => {
queryMock.mockQuery({
name: "ValidateRequest",
data: {
sessions: [mockLowcalSession],
lowcalSessions: [mockLowcalSession],
teams: [mockTeam],
},
variables: body.payload,
Expand All @@ -271,7 +271,7 @@ describe("Resume Application endpoint", () => {

queryMock.mockQuery({
name: "ValidateRequest",
data: { teams: [mockTeam], sessions: [] },
data: { teams: [mockTeam], lowcalSessions: [] },
variables: body.payload,
});

Expand Down
2 changes: 1 addition & 1 deletion api.planx.uk/saveAndReturn/resumeApplication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const validateRequest = async (
try {
const query = gql`
query ValidateRequest($email: String, $teamSlug: String) {
sessions(
lowcalSessions: lowcal_sessions(
where: {
email: { _eq: $email }
deleted_at: { _is_null: true }
Expand Down

0 comments on commit abf4887

Please sign in to comment.