gemcap-be-common 1.3.127 → 1.3.128

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.3.127",
3
+ "version": "1.3.128",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -729,12 +729,14 @@ class LoanStatementService {
729
729
  await Promise.all(products.map(async (product) => {
730
730
  const lastTransaction = await this.loanTransactionsService.getLastTransactionForDate(product._id.toString(), end.toDate());
731
731
  if (lastTransaction) {
732
- switch (loan_types_enum_1.ELoanTypes[product.type]) {
732
+ switch (product.type) {
733
733
  case loan_types_enum_1.ELoanTypes.REVOLVER: {
734
734
  data.revolverBalance = lastTransaction.balance ?? 0;
735
+ break;
735
736
  }
736
737
  case loan_types_enum_1.ELoanTypes.TERM: {
737
738
  data.termBalance = lastTransaction.balance ?? 0;
739
+ break;
738
740
  }
739
741
  }
740
742
  }
@@ -822,12 +822,14 @@ export class LoanStatementService {
822
822
  await Promise.all(products.map(async (product) => {
823
823
  const lastTransaction = await this.loanTransactionsService.getLastTransactionForDate(product._id.toString(), end.toDate());
824
824
  if (lastTransaction) {
825
- switch (ELoanTypes[product.type]) {
825
+ switch (product.type) {
826
826
  case ELoanTypes.REVOLVER: {
827
827
  data.revolverBalance = lastTransaction.balance ?? 0;
828
+ break;
828
829
  }
829
830
  case ELoanTypes.TERM: {
830
831
  data.termBalance = lastTransaction.balance ?? 0;
832
+ break
831
833
  }
832
834
  }
833
835
  }