@infrab4a/connect-angular 4.9.3-beta.0 → 4.9.3
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/esm2020/services/catalog/wishlist.service.mjs +1 -9
- package/fesm2015/infrab4a-connect-angular.mjs +0 -8
- package/fesm2015/infrab4a-connect-angular.mjs.map +1 -1
- package/fesm2020/infrab4a-connect-angular.mjs +0 -8
- package/fesm2020/infrab4a-connect-angular.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1981,14 +1981,6 @@ class WishlistService {
|
|
|
1981
1981
|
personType: personType ?? PersonTypes.NONE,
|
|
1982
1982
|
personIsSubscriber: personIsSubscriber ?? false,
|
|
1983
1983
|
};
|
|
1984
|
-
// const hasWishlist = await this.wishlistRepository
|
|
1985
|
-
// .find({
|
|
1986
|
-
// filters: {
|
|
1987
|
-
// personId,
|
|
1988
|
-
// },
|
|
1989
|
-
// })
|
|
1990
|
-
// .then((res) => res.count)
|
|
1991
|
-
// if (hasWishlist) throw 'Usuário já possui Wishlist'
|
|
1992
1984
|
const newWishlist = await this.wishlistRepository.create(data);
|
|
1993
1985
|
await this.wishlistRepository.update({ id: newWishlist.id, slug: newWishlist.id });
|
|
1994
1986
|
return Wishlist.toInstance({ ...newWishlist.toPlain(), slug: newWishlist.id });
|