Chore: ng lint using the recommended @angular-eslint style
This commit is contained in:
@ -30,11 +30,9 @@ export class CashierReportService {
|
||||
if (finishDate !== null) {
|
||||
options.params = options.params.set('f', finishDate);
|
||||
}
|
||||
return <Observable<CashierReport>>(
|
||||
this.http
|
||||
.get<CashierReport>(listUrl, options)
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'list')))
|
||||
);
|
||||
return this.http
|
||||
.get<CashierReport>(listUrl, options)
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'list'))) as Observable<CashierReport>;
|
||||
}
|
||||
|
||||
activeCashiers(startDate: string | null, finishDate: string | null): Observable<User[]> {
|
||||
@ -45,10 +43,10 @@ export class CashierReportService {
|
||||
if (finishDate !== null) {
|
||||
options.params = options.params.set('f', finishDate);
|
||||
}
|
||||
return <Observable<User[]>>this.http
|
||||
return this.http
|
||||
.get<User[]>(`${url}/active`, options)
|
||||
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'activeCashiers')));
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'activeCashiers'))) as Observable<User[]>;
|
||||
}
|
||||
|
||||
print(id: string, startDate: string | null, finishDate: string | null): Observable<boolean> {
|
||||
@ -60,10 +58,8 @@ export class CashierReportService {
|
||||
if (finishDate !== null) {
|
||||
options.params = options.params.set('f', finishDate);
|
||||
}
|
||||
return <Observable<boolean>>(
|
||||
this.http
|
||||
.get<boolean>(printUrl, options)
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'print')))
|
||||
);
|
||||
return this.http
|
||||
.get<boolean>(printUrl, options)
|
||||
.pipe(catchError(this.log.handleError(serviceName, 'print'))) as Observable<boolean>;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user