gemcap-be-common 1.3.186 → 1.3.187
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
|
@@ -127,6 +127,7 @@ class TermLoanService {
|
|
|
127
127
|
return { ...termLoan, calculated: mappedCalculatedTermLoan };
|
|
128
128
|
}
|
|
129
129
|
async saveTermLoanSettings(productId, actual, settings) {
|
|
130
|
+
await this.refreshChargeSettings(productId, actual);
|
|
130
131
|
let termLoan = await TermLoan_model_1.TermLoanModel.findOne({ productId, actual }).lean();
|
|
131
132
|
if (!termLoan || termLoan.calculationStatus === TermLoan_model_1.ETermLoanStatus.NEW) {
|
|
132
133
|
termLoan = await this.createTermLoan(productId, actual);
|
|
@@ -158,6 +158,7 @@ export class TermLoanService {
|
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
async saveTermLoanSettings(productId: string, actual: boolean, settings: ITermLoanSettingsOnly): Promise<any> {
|
|
161
|
+
await this.refreshChargeSettings(productId, actual);
|
|
161
162
|
let termLoan = await TermLoanModel.findOne({ productId, actual }).lean();
|
|
162
163
|
if (!termLoan || termLoan.calculationStatus === ETermLoanStatus.NEW) {
|
|
163
164
|
termLoan = await this.createTermLoan(productId, actual);
|