Updating a custom discount from the extension UI is returning an error

Hello. I have discount extension and I am trying to add functionality to allow users to select whether the discount should be for Recurring Subscriptions or not using a checkbox.

I am able to get the discount info without a problem using this query…

query GetAutomaticDiscountData {
  automaticDiscountNode(id: "gid://shopify/DiscountAutomaticNode/1228719063180") {
    ... on DiscountAutomaticNode {
      id
    }
    automaticDiscount {
      ... on DiscountAutomaticApp {
        discountId
        appliesOnSubscription
        recurringCycleLimit
      }
    }
  }
}

I am also able to update the discount without issue using the mutation…

mutation {
  discountAutomaticAppUpdate(
    automaticAppDiscount: {
      appliesOnSubscription:true,
      recurringCycleLimit: 0,
    },
    id: "gid://shopify/DiscountAutomaticNode/1228719063180",
  ) {
    automaticAppDiscount {
      discountId
      title
      startsAt
      endsAt
      status
      appliesOnSubscription
      discountClass
      status
      appDiscountType {
        appKey
        functionId
      }
      combinesWith {
        orderDiscounts
        productDiscounts
        shippingDiscounts
      }
    }
    userErrors {
      field
      message
    }
  }
}

The issue comes in when saving the discount after checking the checkbox from the admin. After clicking save it defaults back to unchecked and get this error…

I tried two APIs discountAutomaticBasicUpdate and discountAutomaticAppUpdate and get the same result using both.

Any insight here??

Also if this question is better suited for the GraphQL forum please let me know and I will remove and add there,.