File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/modules/personal-loan Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -155,7 +155,6 @@ export class PersonalLoanService extends CrudService<PersonalLoan> {
155
155
personalLoan . data . status = StatusPersonalLoan . FAILED ;
156
156
}
157
157
158
-
159
158
const loan = await this . personalLoanRepository . save ( personalLoan . data ) ;
160
159
161
160
const response : IPersonalLoan = {
@@ -181,7 +180,7 @@ export class PersonalLoanService extends CrudService<PersonalLoan> {
181
180
id : string ,
182
181
updateAcceptPersonalLoan : UpdateAcceptPersonalLoanDto ,
183
182
) : Promise < PersonalLoan > {
184
- const personalLoan = await this . findOne ( { id } ) ;
183
+ const personalLoan = await this . findOne ( { id } ) ;
185
184
186
185
if ( ! personalLoan || ! personalLoan . data ) {
187
186
throw new NotFoundException ( `Personal loan for ID ${ id } not found` ) ;
@@ -198,7 +197,7 @@ export class PersonalLoanService extends CrudService<PersonalLoan> {
198
197
id : string ,
199
198
updateInfoAfterRejected : UpdateInfoAfterRejectedDto ,
200
199
) : Promise < PersonalLoan > {
201
- const personalLoan = await this . findOne ( { id } ) ;
200
+ const personalLoan = await this . findOne ( { id } ) ;
202
201
203
202
if ( ! personalLoan || ! personalLoan . data ) {
204
203
throw new NotFoundException ( `Personal loan for ID ${ id } not found` ) ;
You can’t perform that action at this time.
0 commit comments