From 24ea28f98730ef980295f0c7d5b95d5733040576 Mon Sep 17 00:00:00 2001 From: Maciej Korycinski Date: Wed, 16 Sep 2020 15:28:05 +0200 Subject: [PATCH] Pass missing isVisibleListing variable to mutation (#712) * Pass missing arguments * Update types --- src/products/mutations.ts | 2 ++ src/products/types/SimpleProductUpdate.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/products/mutations.ts b/src/products/mutations.ts index c0544ebdb..12d6d4de3 100644 --- a/src/products/mutations.ts +++ b/src/products/mutations.ts @@ -201,6 +201,7 @@ export const simpleProductUpdateMutation = gql` $deleteStocks: [ID!]! $updateStocks: [StockInput!]! $weight: WeightScalar + $visibleInListings: Boolean ) { productUpdate( id: $id @@ -216,6 +217,7 @@ export const simpleProductUpdateMutation = gql` basePrice: $basePrice seo: $seo weight: $weight + visibleInListings: $visibleInListings } ) { errors: productErrors { diff --git a/src/products/types/SimpleProductUpdate.ts b/src/products/types/SimpleProductUpdate.ts index 26eb2e083..e023f09b1 100644 --- a/src/products/types/SimpleProductUpdate.ts +++ b/src/products/types/SimpleProductUpdate.ts @@ -830,4 +830,5 @@ export interface SimpleProductUpdateVariables { deleteStocks: string[]; updateStocks: StockInput[]; weight?: any | null; + visibleInListings?: boolean | null; }