Skip to content

Commit

Permalink
fix: Do not allow users to resume submitted or deleted sessions (#3828)
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr authored Oct 21, 2024
1 parent 6bee885 commit f5cea21
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,12 @@ export async function findSession({
gql`
query FindSession($sessionId: uuid!, $email: String!) {
sessions: lowcal_sessions(
where: { id: { _eq: $sessionId }, email: { _eq: $email } }
where: {
id: { _eq: $sessionId }
email: { _eq: $email }
submitted_at: { _is_null: true }
deleted_at: { _is_null: true }
}
limit: 1
) {
flow_id
Expand Down

0 comments on commit f5cea21

Please sign in to comment.