diff --git a/src/app/pages/history/history.page.ts b/src/app/pages/history/history.page.ts index 39fb14b..5afc19d 100644 --- a/src/app/pages/history/history.page.ts +++ b/src/app/pages/history/history.page.ts @@ -42,7 +42,13 @@ historyTypes:any=[]; }; historyTotalData:any; refreshHxReport(item){ - +var endP=''; + switch(item?.id){ + case 'COMPLETED_JOBS': + endP="contracthx"; + break; + } + //debugger; this.usrData = { action: 100001, member_id: this.sessionDataProviderService.member_id, @@ -54,7 +60,7 @@ historyTypes:any=[]; }; this.wrenchService - .getHistoryReport(this.usrData, "contracthx") + .getHistoryReport(this.usrData, endP) .subscribe((historyTotalData) => { this.historyTotalData = historyTotalData; console.log("HX RETURN->", this.historyTotalData); diff --git a/src/app/services/wrench.service.ts b/src/app/services/wrench.service.ts index 22c0bdd..2f0cefa 100644 --- a/src/app/services/wrench.service.ts +++ b/src/app/services/wrench.service.ts @@ -213,7 +213,8 @@ export class WrenchService { return this.getPostData("cachecontacts", usrData); } getUserWallets(usrData) { - return this.getPostData("getwallets", usrData); + //return this.getPostData("getwallets", usrData); + return this.getPostData("wallets", usrData); } getFamilyUserWallets(usrData) {