Skip to content

Commit 9349ca8

Browse files
committed
feat(src): Add approval method and update rejected info to personal loan
1 parent e121eed commit 9349ca8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/modules/personal-loan/personal-loan.service.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ export class PersonalLoanService extends CrudService<PersonalLoan> {
155155
personalLoan.data.status = StatusPersonalLoan.FAILED;
156156
}
157157

158-
159158
const loan = await this.personalLoanRepository.save(personalLoan.data);
160159

161160
const response: IPersonalLoan = {
@@ -181,7 +180,7 @@ export class PersonalLoanService extends CrudService<PersonalLoan> {
181180
id: string,
182181
updateAcceptPersonalLoan: UpdateAcceptPersonalLoanDto,
183182
): Promise<PersonalLoan> {
184-
const personalLoan = await this.findOne({id});
183+
const personalLoan = await this.findOne({ id });
185184

186185
if (!personalLoan || !personalLoan.data) {
187186
throw new NotFoundException(`Personal loan for ID ${id} not found`);
@@ -198,7 +197,7 @@ export class PersonalLoanService extends CrudService<PersonalLoan> {
198197
id: string,
199198
updateInfoAfterRejected: UpdateInfoAfterRejectedDto,
200199
): Promise<PersonalLoan> {
201-
const personalLoan = await this.findOne({id});
200+
const personalLoan = await this.findOne({ id });
202201

203202
if (!personalLoan || !personalLoan.data) {
204203
throw new NotFoundException(`Personal loan for ID ${id} not found`);

0 commit comments

Comments
 (0)