X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Badmin%2Fsystem%2Fjobs%2Fjob.service.ts;fp=client%2Fsrc%2Fapp%2F%2Badmin%2Fsystem%2Fjobs%2Fjob.service.ts;h=6c4a07469f8b65f96952d5d45250a8a67c0d67c7;hb=9df52d660feb722404be00a50f3c8a612bec1c15;hp=4b4a8914fdd5543776351be93853e790ffc5624a;hpb=adb8809d43648ea0a64d6845bb39aa3bd0e005a6;p=github%2FChocobozzz%2FPeerTube.git 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' ])