MCPcopy Create free account
hub / github.com/parse-community/parse-server / editJob

Method editJob

src/Routers/CloudCodeRouter.js:92–111  ·  view source on GitHub ↗
(req)

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 3

validateJobScheduleFunction · 0.85
formatJobScheduleFunction · 0.85
updateMethod · 0.80

Tested by

no test coverage detected