Fix to run selected jobs

This commit is contained in:
Jose Alberto Hernandez
2022-07-11 11:03:46 +02:00
committed by Arnold Gálovics
parent 3c6f95ec9d
commit c958489a75
3 changed files with 5 additions and 6 deletions
+2 -2
View File
@@ -275,8 +275,8 @@ export class SystemService {
* @param jobId Job Id to be edited
* @returns {Observable<any>} Fetches Scheduler Job.
*/
runSelectedJob(jobId: string): Observable<any> {
return this.http.post(`/jobs/${jobId}?command=executeJob`, this.emptyPayload);
runSelectedJob(jobId: string): Promise<any> {
return this.http.post(`/jobs/${jobId}?command=executeJob`, this.emptyPayload).toPromise();
}
/*