@infrab4a/connect-angular 4.0.2-beta.0 → 4.0.2-beta.1

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.
@@ -1718,9 +1718,9 @@ class WishlistService {
1718
1718
  getCategoryService() {
1719
1719
  return this.categoryService;
1720
1720
  }
1721
- async create(personId, title, description, userFullName) {
1721
+ async create(personId, title, description, userFullName, userPhoto) {
1722
1722
  const data = {
1723
- slug: UtilHelper.createSlug(`favoritos ${userFullName} ${title}`),
1723
+ slug: UtilHelper.createSlug(`favoritos ${title}`),
1724
1724
  name: title,
1725
1725
  description,
1726
1726
  metadata: {
@@ -1730,22 +1730,26 @@ class WishlistService {
1730
1730
  shop: this.shop,
1731
1731
  shops: [this.shop],
1732
1732
  personId,
1733
+ personName: userFullName,
1734
+ personPhoto: userPhoto,
1733
1735
  brandCategory: false,
1734
1736
  published: true,
1735
1737
  };
1736
1738
  const newWishlist = await this.wishlistRepository.create(data);
1737
1739
  return this.wishlistRepository.update({ id: newWishlist.id, slug: `${newWishlist.id}-${newWishlist.slug}` });
1738
1740
  }
1739
- update(id, title, description, userFullName) {
1741
+ update(id, title, description, userFullName, userPhoto) {
1740
1742
  const data = {
1741
1743
  id,
1742
- slug: UtilHelper.createSlug(`${id}-favoritos ${userFullName} ${title}`),
1744
+ slug: UtilHelper.createSlug(`${id}-favoritos ${title}`),
1743
1745
  name: title,
1744
1746
  description,
1745
1747
  metadata: {
1746
1748
  title: `${userFullName} - ${title}`,
1747
1749
  description: `${userFullName} - ${description}`,
1748
1750
  },
1751
+ personName: userFullName,
1752
+ personPhoto: userPhoto,
1749
1753
  };
1750
1754
  return this.wishlistRepository.update(data);
1751
1755
  }