Skip to content

Commit

Permalink
Merge 2ea5834 into 0fb09fd
Browse files Browse the repository at this point in the history
  • Loading branch information
Fifciu committed Jan 12, 2021
2 parents 0fb09fd + 2ea5834 commit ac3597f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/* istanbul ignore file */
const restrictedOperations = {
anonymous: [
'createCart'
'createCart',
'createMyShoppingList'
],
user: [
'customerSignMeIn',
Expand Down
3 changes: 1 addition & 2 deletions packages/core/core/src/factories/useWishlistFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Ref, computed } from '@vue/composition-api';
import { sharedRef, Logger, generateContext } from '../utils';

export interface UseWishlistFactoryParams<WISHLIST, WISHLIST_ITEM, PRODUCT> extends FactoryParams {
load: (context: Context, params: { customQuery?: CustomQuery }) => Promise<WISHLIST>;
load: (context: Context, params: { customQuery?: any }) => Promise<WISHLIST>;
addItem: (
context: Context,
params: {
Expand Down Expand Up @@ -84,7 +84,6 @@ export const useWishlistFactory = <WISHLIST, WISHLIST_ITEM, PRODUCT>(

const load = async ({ customQuery } = { customQuery: undefined }) => {
Logger.debug('useWishlist.load');

if (wishlist.value) return;

try {
Expand Down
1 change: 1 addition & 0 deletions packages/core/docs/commercetools/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- use updated factories `useUserBillingFactory`, `useUserShippingFactory` and `useWishlistFactory` ([5350](https://github.com/vuestorefront/vue-storefront/pull/5350))
- use updated factories `useUserBillingFactory`, `useUserShippingFactory` and `useWishlistFactory` ([5350](https://github.com/vuestorefront/vue-storefront/pull/5350))
- fix selecting country on checkout payment and shipping ([5386](https://github.com/vuestorefront/vue-storefront/pull/5386))
- `createMyShoppingList` as a restricted anonymous operation

## 1.0.1-rc.1
- updated version of core
Expand Down
2 changes: 1 addition & 1 deletion packages/core/docs/contributing/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
- fix adding to cart button on product page ([#5375](https://github.com/vuestorefront/vue-storefront/pull/5375))
- typed error ref for each core's factory ([#4956](https://github.com/vuestorefront/vue-storefront/issues/4956))
- added ID to Loggers in core factories ([#5351](https://github.com/vuestorefront/vue-storefront/issues/5351))

- useWishlistFactory.load `customQuery` in second argument's object is typeof `any` not `CustomQuery` anymore

## 2.1.1-rc.1
- updated version of nuxt composition-api
Expand Down

0 comments on commit ac3597f

Please sign in to comment.