From 9df52d660feb722404be00a50f3c8a612bec1c15 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 17 Aug 2021 14:42:53 +0200 Subject: Migrate client to eslint --- client/src/app/+admin/system/jobs/job.service.ts | 8 ++++---- client/src/app/+admin/system/logs/logs.service.ts | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'client/src/app/+admin/system') diff --git a/client/src/app/+admin/system/jobs/job.service.ts b/client/src/app/+admin/system/jobs/job.service.ts index 4b4a8914f..6c4a07469 100644 --- a/client/src/app/+admin/system/jobs/job.service.ts +++ b/client/src/app/+admin/system/jobs/job.service.ts @@ -20,9 +20,9 @@ export class JobService { ) {} getJobs (options: { - jobState?: JobStateClient, - jobType: JobTypeClient, - pagination: RestPagination, + jobState?: JobStateClient + jobType: JobTypeClient + pagination: RestPagination sort: SortMeta }): Observable> { const { jobState, jobType, pagination, sort } = options @@ -32,7 +32,7 @@ export class JobService { if (jobType !== 'all') params = params.append('jobType', jobType) - return this.authHttp.get>(JobService.BASE_JOB_URL + `/${jobState ? jobState : ''}`, { params }) + return this.authHttp.get>(JobService.BASE_JOB_URL + `/${jobState || ''}`, { params }) .pipe( map(res => { return this.restExtractor.convertResultListDateToHuman(res, [ 'createdAt', 'processedOn', 'finishedOn' ]) diff --git a/client/src/app/+admin/system/logs/logs.service.ts b/client/src/app/+admin/system/logs/logs.service.ts index 69439a179..0c222cad2 100644 --- a/client/src/app/+admin/system/logs/logs.service.ts +++ b/client/src/app/+admin/system/logs/logs.service.ts @@ -18,9 +18,9 @@ export class LogsService { ) {} getLogs (options: { - isAuditLog: boolean, - startDate: string, - level?: LogLevel, + isAuditLog: boolean + startDate: string + level?: LogLevel endDate?: string }): Observable { const { isAuditLog, startDate } = options -- cgit v1.2.3