Optimize search for loan and client

This commit is contained in:
Peter Bagrij
2023-12-07 10:16:08 +01:00
committed by Arnold Gálovics
parent 3a53236516
commit 363806286a
6 changed files with 53 additions and 12 deletions
@@ -169,7 +169,7 @@ export class LoanApprovalComponent {
}
loanResource() {
this.tasksService.getAllLoans().subscribe((response: any) => {
this.tasksService.getAllLoansToBeApproved().subscribe((response: any) => {
this.loans = response.pageItems;
this.loans = this.loans.filter((account: any) => {
return (account.status.waitingForDisbursal === true);
@@ -122,7 +122,7 @@ export class LoanDisbursalComponent {
}
loanResource() {
this.tasksService.getAllLoans().subscribe((response: any) => {
this.tasksService.getAllLoansToBeDisbursed().subscribe((response: any) => {
this.loans = response.pageItems;
this.loans = this.loans.filter((account: any) => {
return (account.status.waitingForDisbursal === true);