diff --git a/.changeset/chilly-forks-smell.md b/.changeset/chilly-forks-smell.md new file mode 100644 index 000000000..f283b9eb1 --- /dev/null +++ b/.changeset/chilly-forks-smell.md @@ -0,0 +1,5 @@ +--- +"@bigcommerce/catalyst-core": patch +--- + +update delete wishlists mutation diff --git a/core/client/mutations/delete-wishlists.ts b/core/client/mutations/delete-wishlists.ts index 89526dab1..792c0dff1 100644 --- a/core/client/mutations/delete-wishlists.ts +++ b/core/client/mutations/delete-wishlists.ts @@ -14,9 +14,13 @@ const DELETE_WISHLISTS_MUTATION = graphql(` `); type Variables = VariablesOf; -export type Input = Variables['input']; +type Input = Variables['input']; -export const deleteWishlists = async (input: Input) => { +export interface DeleteWishlists { + input: Input; +} + +export const deleteWishlists = async ({ input }: DeleteWishlists) => { const customerId = await getSessionCustomerId(); const response = await client.fetch({