gemcap-be-common 1.5.18 → 1.5.20

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.5.18",
3
+ "version": "1.5.20",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -45,7 +45,7 @@ export declare class ComplianceBorrowersService {
45
45
  };
46
46
  };
47
47
  getFullComplianceBorrowerById(complianceBorrowerId: string): Promise<any>;
48
- getAllBorrowersShortened(userAccess: IUserAccess): Promise<(Pick<IComplianceBorrowerWithBorrower, "borrower" | "fundingStatus" | "items"> | {
48
+ getAllBorrowersShortened(userAccess: IUserAccess): Promise<(Pick<IComplianceBorrowerWithBorrower, "items" | "borrower" | "fundingStatus"> | {
49
49
  items: {
50
50
  instances: any[];
51
51
  item: import("../models/ComplianceItem.model").IComplianceItemDocument;
@@ -723,7 +723,7 @@ class LoanStatementService {
723
723
  return (0, loan_statement_db_1.getStatementBorrowersTransactions)(start, end, selectedPeriod, selectedBorrowerIds, ledgerType);
724
724
  }
725
725
  async getBorrowerComplianceData(borrowerId, date) {
726
- const end = (0, dayjs_1.default)(date).utcOffset(0).subtract(1, 'month').endOf('month');
726
+ const end = dayjs_1.default.utc(date).subtract(1, 'month').endOf('month');
727
727
  const start = end.startOf('month');
728
728
  const products = await this.loanChargesService.getLoanProducts(borrowerId);
729
729
  const data = {
@@ -817,7 +817,7 @@ export class LoanStatementService {
817
817
  }
818
818
 
819
819
  async getBorrowerComplianceData(borrowerId: string, date: Date) {
820
- const end = dayjs(date).utcOffset(0).subtract(1, 'month').endOf('month');
820
+ const end = dayjs.utc(date).subtract(1, 'month').endOf('month');
821
821
  const start = end.startOf('month');
822
822
  const products = await this.loanChargesService.getLoanProducts(borrowerId);
823
823
  const data = {