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 Nov 4, 2024
1 parent ae5df32 commit d0930e3
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 d0930e3

Please sign in to comment.