@szymonpiatek/nextwordpress 0.0.20 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/index.cjs.map +1 -1
- package/dist/client/index.js.map +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/server/index.cjs +2 -2
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/index.js.map +1 -1
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -1061,8 +1061,8 @@ function createTIWishlistMutations(fetcher) {
|
|
|
1061
1061
|
async function addProduct(shareKey, input) {
|
|
1062
1062
|
return tiMutate(`${BASE4}/${shareKey}/add_product`, input);
|
|
1063
1063
|
}
|
|
1064
|
-
async function removeProduct(itemId) {
|
|
1065
|
-
return
|
|
1064
|
+
async function removeProduct(shareKey, itemId) {
|
|
1065
|
+
return tiMutate(`${BASE4}/${shareKey}/remove_product/${itemId}`, {}, "DELETE");
|
|
1066
1066
|
}
|
|
1067
1067
|
return { createWishlist, updateWishlist, deleteWishlist, addProduct, removeProduct };
|
|
1068
1068
|
}
|