build: Use prettier for typescript
Stop ignoring .ts files in prettier and fix existing issues.
This commit is contained in:
@@ -13,18 +13,18 @@ import { LoansService } from '../loans.service';
|
||||
*/
|
||||
@Injectable()
|
||||
export class LoansAccountTemplateResolver implements Resolve<Object> {
|
||||
/**
|
||||
* @param {ProductsService} productsService Products service.
|
||||
*/
|
||||
constructor(private loansService: LoansService) { }
|
||||
/**
|
||||
* @param {ProductsService} productsService Products service.
|
||||
*/
|
||||
constructor(private loansService: LoansService) {}
|
||||
|
||||
/**
|
||||
* Returns the loan account template data.
|
||||
* @returns {Observable<any>}
|
||||
*/
|
||||
resolve(route: ActivatedRouteSnapshot): Observable<any> {
|
||||
const entityId = route.parent.parent.paramMap.get('clientId') || route.parent.parent.paramMap.get('groupId');
|
||||
const isGroup = (route.parent.parent.paramMap.get('groupId')) ? true : false;
|
||||
return this.loansService.getLoansAccountTemplateResource(entityId, isGroup);
|
||||
}
|
||||
/**
|
||||
* Returns the loan account template data.
|
||||
* @returns {Observable<any>}
|
||||
*/
|
||||
resolve(route: ActivatedRouteSnapshot): Observable<any> {
|
||||
const entityId = route.parent.parent.paramMap.get('clientId') || route.parent.parent.paramMap.get('groupId');
|
||||
const isGroup = route.parent.parent.paramMap.get('groupId') ? true : false;
|
||||
return this.loansService.getLoansAccountTemplateResource(entityId, isGroup);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user