-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c6659cb
commit 7e4bf11
Showing
2 changed files
with
4 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import wishlistLoader from "../../loaders/wishlist.ts"; | ||
import { AppContext } from "../../mod.ts"; | ||
import type { WishlistItem } from "../../utils/types.ts"; | ||
import { parseCookie } from "../../utils/vtexId.ts"; | ||
|
@@ -32,7 +31,7 @@ const action = async ( | |
`mutation AddToWishlist($listItem: ListItemInputType!, $shopperId: String!, $name: String!, $public: Boolean) { addToList(listItem: $listItem, shopperId: $shopperId, name: $name, public: $public) @context(provider: "[email protected]") }`, | ||
}, { headers: { cookie } }); | ||
|
||
return wishlistLoader({ count: Infinity }, req, ctx); | ||
return ctx.invoke.vtex.loaders.wishlist({ allRecords: true }); | ||
}; | ||
|
||
export default action; |