We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a74a481 commit f589327Copy full SHA for f589327
src/index.js
@@ -374,8 +374,20 @@ export const coreCommand = ( arg, opt) => {
374
})
375
}
376
377
+
378
+/**
379
+ * stopJob stops a job with the specified jobId.
380
+ * @returns {Promise<unknown>}
381
+ */
382
+ export const stopJob = (jobId) => {
383
+ let data = {};
384
+ if (jobId) {
385
+ data = {
386
+ jobid: jobId,
387
+ };
388
389
return new Promise((resolve, reject) => {
- axiosInstance.post(urls.transferred).then(res => {
390
+ axiosInstance.post(urls.stopJob, data).then(res => {
391
resolve(res.data);
392
}, error => {
393
reject(error);
0 commit comments