File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -185,17 +185,16 @@ export class HomeLoanService extends CrudService<HomeLoan> {
185
185
return this . homeLoanRepository . save ( homeLoan ) ;
186
186
}
187
187
188
- async getLastCreated ( customerId : string ) : Promise < ResponseDTO > {
189
-
188
+ async getLastCreated ( customerId : string ) : Promise < ResponseDTO > {
190
189
const personaLoan = await this . homeLoanRepository . findOne ( {
191
190
where : {
192
191
customer : { id : customerId } ,
193
192
} ,
194
193
order : {
195
194
createdAt : 'DESC' ,
196
195
} ,
197
- } )
196
+ } ) ;
198
197
199
- return { data : personaLoan }
198
+ return { data : personaLoan } ;
200
199
}
201
200
}
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ export class PersonalLoanController {
133
133
description : 'Return the last created PersonalLoan' ,
134
134
} )
135
135
async getLastCreated ( @Param ( 'id' ) customerId : string ) : Promise < ResponseDTO > {
136
- return await this . personalLoanService . getLastCreated ( customerId )
136
+ return await this . personalLoanService . getLastCreated ( customerId ) ;
137
137
}
138
138
139
139
@Put ( ':id/accept-personal-loan' )
Original file line number Diff line number Diff line change @@ -212,17 +212,16 @@ export class PersonalLoanService extends CrudService<PersonalLoan> {
212
212
return this . personalLoanRepository . save ( personalLoan . data ) ;
213
213
}
214
214
215
- async getLastCreated ( customerId : string ) : Promise < ResponseDTO > {
216
-
215
+ async getLastCreated ( customerId : string ) : Promise < ResponseDTO > {
217
216
const personaLoan = await this . personalLoanRepository . findOne ( {
218
217
where : {
219
218
customer : { id : customerId } ,
220
219
} ,
221
220
order : {
222
221
createdAt : 'DESC' ,
223
222
} ,
224
- } )
223
+ } ) ;
225
224
226
- return { data : personaLoan }
225
+ return { data : personaLoan } ;
227
226
}
228
227
}
You can’t perform that action at this time.
0 commit comments