From d0930e3a759f0b97e2818a26803057fde4d667ca Mon Sep 17 00:00:00 2001
From: bduran <bryan.duran@jpl.nasa.gov>
Date: Thu, 31 Oct 2024 13:40:29 -0700
Subject: [PATCH] fix update constraint plan spec query parameters

---
 src/utilities/effects.ts | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/src/utilities/effects.ts b/src/utilities/effects.ts
index 668123f8eb..6b3c73825e 100644
--- a/src/utilities/effects.ts
+++ b/src/utilities/effects.ts
@@ -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,