From 8b11321fe3025707d7871622e39a27cca1092e83 Mon Sep 17 00:00:00 2001 From: kj1352 Date: Tue, 8 Dec 2020 19:36:38 +0530 Subject: [PATCH] update outlet bookmark API params appneded with mall ID --- src/app/mall-details/mall-details.page.ts | 3 +++ src/app/outlet-details/outlet-details.page.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/app/mall-details/mall-details.page.ts b/src/app/mall-details/mall-details.page.ts index 70183ba..a940bac 100644 --- a/src/app/mall-details/mall-details.page.ts +++ b/src/app/mall-details/mall-details.page.ts @@ -27,6 +27,9 @@ export class MallDetailsPage implements OnInit { } toggleOutletBookmark(outlet) { + outlet.mall = { + mall_id: this.mallDetails.id + }; outlet.is_bookmarked = !outlet.is_bookmarked; this.mallService.updateOutlet(outlet); } diff --git a/src/app/outlet-details/outlet-details.page.ts b/src/app/outlet-details/outlet-details.page.ts index bfa5a2f..461f3a1 100644 --- a/src/app/outlet-details/outlet-details.page.ts +++ b/src/app/outlet-details/outlet-details.page.ts @@ -35,6 +35,9 @@ export class OutletDetailsPage implements OnInit { ngOnInit() { } toggleOutletBookmark() { + this.outlet_details.mall = { + mall_id: this.mallId + }; this.outlet_details.is_bookmarked = !this.outlet_details.is_bookmarked; this.mallService.updateOutlet(this.outlet_details); }