diff options
Diffstat (limited to 'client/src/app/+admin/system/jobs')
-rw-r--r-- | client/src/app/+admin/system/jobs/job.service.ts | 8 |
1 files changed, 4 insertions, 4 deletions
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 { | |||
20 | ) {} | 20 | ) {} |
21 | 21 | ||
22 | getJobs (options: { | 22 | getJobs (options: { |
23 | jobState?: JobStateClient, | 23 | jobState?: JobStateClient |
24 | jobType: JobTypeClient, | 24 | jobType: JobTypeClient |
25 | pagination: RestPagination, | 25 | pagination: RestPagination |
26 | sort: SortMeta | 26 | sort: SortMeta |
27 | }): Observable<ResultList<Job>> { | 27 | }): Observable<ResultList<Job>> { |
28 | const { jobState, jobType, pagination, sort } = options | 28 | const { jobState, jobType, pagination, sort } = options |
@@ -32,7 +32,7 @@ export class JobService { | |||
32 | 32 | ||
33 | if (jobType !== 'all') params = params.append('jobType', jobType) | 33 | if (jobType !== 'all') params = params.append('jobType', jobType) |
34 | 34 | ||
35 | return this.authHttp.get<ResultList<Job>>(JobService.BASE_JOB_URL + `/${jobState ? jobState : ''}`, { params }) | 35 | return this.authHttp.get<ResultList<Job>>(JobService.BASE_JOB_URL + `/${jobState || ''}`, { params }) |
36 | .pipe( | 36 | .pipe( |
37 | map(res => { | 37 | map(res => { |
38 | return this.restExtractor.convertResultListDateToHuman(res, [ 'createdAt', 'processedOn', 'finishedOn' ]) | 38 | return this.restExtractor.convertResultListDateToHuman(res, [ 'createdAt', 'processedOn', 'finishedOn' ]) |