Skip to content

Commit

Permalink
fix constraint invocation deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
duranb committed Mar 4, 2025
1 parent a8f161b commit 87d40e5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/utilities/gql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -683,13 +683,10 @@ const gql = {
`,

DELETE_CONSTRAINT_INVOCATIONS: `#graphql
mutation DeleteConstraintInvocations($constraintInvocationIdsToDelete: [Int!]! = [], $specificationId: Int!) {
mutation DeleteConstraintInvocations($constraintInvocationIdsToDelete: [Int!]! = []) {
deleteConstraintPlanSpecifications: ${Queries.DELETE_CONSTRAINT_SPECIFICATIONS}(
where: {
invocation_id: { _in: $constraintInvocationIdsToDelete },
_and: {
specification_id: { _eq: $specificationId },
}
invocation_id: { _in: $constraintInvocationIdsToDelete }
}
) {
affected_rows
Expand Down

0 comments on commit 87d40e5

Please sign in to comment.