gemcap-be-common 1.3.2 → 1.3.3
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.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@sentry/node": "^8.55.0",
|
|
14
|
+
"@types/pdfmake": "^0.2.9",
|
|
14
15
|
"aws-sdk": "^2.1691.0",
|
|
15
16
|
"class-transformer": "^0.5.1",
|
|
16
17
|
"dayjs": "^1.11.13",
|
|
@@ -34,7 +35,6 @@
|
|
|
34
35
|
"@types/joi": "^17.2.3",
|
|
35
36
|
"@types/lodash": "^4.17.10",
|
|
36
37
|
"@types/nodemailer": "^6.4.17",
|
|
37
|
-
"@types/pdfmake": "^0.2.9",
|
|
38
38
|
"@types/uuid": "^10.0.0",
|
|
39
39
|
"typescript": "^5.3.3"
|
|
40
40
|
}
|
|
@@ -151,7 +151,7 @@ export declare class LoanTransactionsService {
|
|
|
151
151
|
getTransactionReport(transactionIds: string[], borrowerId: string, effectiveDate: Date): Promise<{
|
|
152
152
|
transactionIdsToMark: any[];
|
|
153
153
|
transactions: {
|
|
154
|
-
[x: string]: (string | number | string[]
|
|
154
|
+
[x: string]: (string | number | Date | string[])[];
|
|
155
155
|
}[];
|
|
156
156
|
}>;
|
|
157
157
|
getBorrowerIdsForFile(transactionFileId: string): Promise<{
|
|
@@ -925,7 +925,7 @@ class LoanTransactionsService {
|
|
|
925
925
|
else {
|
|
926
926
|
const transaction = await LoanTransaction_model_1.LoanTransaction.findById(transactionId).lean();
|
|
927
927
|
if (transaction) {
|
|
928
|
-
await LoanTransaction_model_1.LoanTransaction.findByIdAndUpdate(transactionId, { isSent: !transaction.isSent ??
|
|
928
|
+
await LoanTransaction_model_1.LoanTransaction.findByIdAndUpdate(transactionId, { isSent: !(transaction.isSent ?? true) });
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
931
|
}
|
|
@@ -1027,7 +1027,7 @@ export class LoanTransactionsService {
|
|
|
1027
1027
|
} else {
|
|
1028
1028
|
const transaction = await LoanTransaction.findById(transactionId).lean();
|
|
1029
1029
|
if (transaction) {
|
|
1030
|
-
await LoanTransaction.findByIdAndUpdate(transactionId, { isSent: !transaction.isSent ??
|
|
1030
|
+
await LoanTransaction.findByIdAndUpdate(transactionId, { isSent: !(transaction.isSent ?? true) });
|
|
1031
1031
|
}
|
|
1032
1032
|
}
|
|
1033
1033
|
}
|