Skip to content

Commit

Permalink
feat(core): update delete wishlists mutation (#1273)
Browse files Browse the repository at this point in the history
  • Loading branch information
yurytut1993 authored Aug 20, 2024
1 parent c5b7609 commit af8503e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilly-forks-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@bigcommerce/catalyst-core": patch
---

update delete wishlists mutation
8 changes: 6 additions & 2 deletions core/client/mutations/delete-wishlists.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ const DELETE_WISHLISTS_MUTATION = graphql(`
`);

type Variables = VariablesOf<typeof DELETE_WISHLISTS_MUTATION>;
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({
Expand Down

0 comments on commit af8503e

Please sign in to comment.