diff --git a/src/modules/home-loan/home-loan.service.ts b/src/modules/home-loan/home-loan.service.ts index 65e131d..847b7a8 100644 --- a/src/modules/home-loan/home-loan.service.ts +++ b/src/modules/home-loan/home-loan.service.ts @@ -185,8 +185,7 @@ export class HomeLoanService extends CrudService { return this.homeLoanRepository.save(homeLoan); } - async getLastCreated(customerId: string): Promise { - + async getLastCreated(customerId: string): Promise { const personaLoan = await this.homeLoanRepository.findOne({ where: { customer: { id: customerId }, @@ -194,8 +193,8 @@ export class HomeLoanService extends CrudService { order: { createdAt: 'DESC', }, - }) + }); - return { data: personaLoan } + return { data: personaLoan }; } } diff --git a/src/modules/personal-loan/personal-loan.controller.ts b/src/modules/personal-loan/personal-loan.controller.ts index 0776f97..2470543 100644 --- a/src/modules/personal-loan/personal-loan.controller.ts +++ b/src/modules/personal-loan/personal-loan.controller.ts @@ -133,7 +133,7 @@ export class PersonalLoanController { description: 'Return the last created PersonalLoan', }) async getLastCreated(@Param('id') customerId: string): Promise { - return await this.personalLoanService.getLastCreated(customerId) + return await this.personalLoanService.getLastCreated(customerId); } @Put(':id/accept-personal-loan') diff --git a/src/modules/personal-loan/personal-loan.service.ts b/src/modules/personal-loan/personal-loan.service.ts index d19f714..a420d07 100644 --- a/src/modules/personal-loan/personal-loan.service.ts +++ b/src/modules/personal-loan/personal-loan.service.ts @@ -212,8 +212,7 @@ export class PersonalLoanService extends CrudService { return this.personalLoanRepository.save(personalLoan.data); } - async getLastCreated(customerId: string): Promise { - + async getLastCreated(customerId: string): Promise { const personaLoan = await this.personalLoanRepository.findOne({ where: { customer: { id: customerId }, @@ -221,8 +220,8 @@ export class PersonalLoanService extends CrudService { order: { createdAt: 'DESC', }, - }) + }); - return { data: personaLoan } + return { data: personaLoan }; } }