Skip to content

Commit

Permalink
fix update constraint plan spec query parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
duranb committed Oct 31, 2024
1 parent 3f1963d commit 49d007d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/utilities/effects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5664,20 +5664,14 @@ const effects = {
if (!queryPermissions.UPDATE_CONSTRAINT_PLAN_SPECIFICATION(user, plan)) {
throwPermissionError('update this constraint plan specification');
}
const {
enabled,
constraint_id: constraintId,
invocation_id,
constraint_revision: revision,
} = constraintPlanSpecification;
const { enabled, invocation_id, constraint_revision: revision } = constraintPlanSpecification;

const { updateConstraintPlanSpecification } = await reqHasura(
gql.UPDATE_CONSTRAINT_PLAN_SPECIFICATION,
{
arguments: constraintPlanSpecification.arguments,
constraintInvocationId: invocation_id,
enabled,
id: constraintId,
invocation_id,
revision,
},
user,
Expand Down

0 comments on commit 49d007d

Please sign in to comment.