) {}
getJobs (options: {
- jobState?: JobStateClient,
- jobType: JobTypeClient,
- pagination: RestPagination,
+ jobState?: JobStateClient
+ jobType: JobTypeClient
+ pagination: RestPagination
sort: SortMeta
}): Observable<ResultList<Job>> {
const { jobState, jobType, pagination, sort } = options
if (jobType !== 'all') params = params.append('jobType', jobType)
- return this.authHttp.get<ResultList<Job>>(JobService.BASE_JOB_URL + `/${jobState ? jobState : ''}`, { params })
+ return this.authHttp.get<ResultList<Job>>(JobService.BASE_JOB_URL + `/${jobState || ''}`, { params })
.pipe(
map(res => {
return this.restExtractor.convertResultListDateToHuman(res, [ 'createdAt', 'processedOn', 'finishedOn' ])