@infrab4a/connect-angular 4.17.3-beta.0 → 4.17.3-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.
@@ -1507,9 +1507,10 @@ class CartService {
1507
1507
  const currentItemAmount = currentItemQtd || 0;
1508
1508
  return currentItemAmount + quantityToAdd > maxStock;
1509
1509
  };
1510
- this.checkoutUrl = `https://southamerica-east1-${this.firebaseOptions.projectId}.cloudfunctions.net`;
1510
+ // this.checkoutUrl = `https://southamerica-east1-${this.firebaseOptions.projectId}.cloudfunctions.net`
1511
+ this.checkoutUrl = `http://docker.for.localhost:5001/b4astage-cb80a/southamerica-east1`;
1511
1512
  }
1512
- async addItem(item, quantity = 1) {
1513
+ addItem(item, quantity = 1) {
1513
1514
  return this.checkoutService.getCheckout().pipe(tap((checkout) => this.http.post(`${this.checkoutUrl}/checkoutAddItemToCart`, {
1514
1515
  checkoutId: checkout.id,
1515
1516
  productId: item.id,
@@ -1522,7 +1523,7 @@ class CartService {
1522
1523
  // tap((cart) => this.cartSubject.next(cart)),
1523
1524
  // )
1524
1525
  }
1525
- async decreaseItem(item) {
1526
+ decreaseItem(item) {
1526
1527
  return this.checkoutService.getCheckout().pipe(tap((checkout) => this.http.post(`${this.checkoutUrl}/checkoutDecreaseProductFromCart`, {
1527
1528
  checkoutId: checkout.id,
1528
1529
  productId: item.id,