(req)
| 90 | } |
| 91 | |
| 92 | static editJob(req) { |
| 93 | const { objectId } = req.params; |
| 94 | const { job_schedule } = req.body || {}; |
| 95 | validateJobSchedule(req.config, job_schedule); |
| 96 | return rest |
| 97 | .update( |
| 98 | req.config, |
| 99 | req.auth, |
| 100 | '_JobSchedule', |
| 101 | { objectId }, |
| 102 | formatJobSchedule(job_schedule), |
| 103 | undefined, |
| 104 | req.info.context |
| 105 | ) |
| 106 | .then(response => { |
| 107 | return { |
| 108 | response, |
| 109 | }; |
| 110 | }); |
| 111 | } |
| 112 | |
| 113 | static deleteJob(req) { |
| 114 | const { objectId } = req.params; |
nothing calls this directly
no test coverage detected