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

Method getJobsData

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

Source from the content-addressed store, hash-verified

64 }
65
66 static getJobsData(req) {
67 const config = req.config;
68 const jobs = triggers.getJobs(config.applicationId) || {};
69 return rest.find(req.config, req.auth, '_JobSchedule', {}, {}).then(scheduledJobs => {
70 return {
71 response: {
72 in_use: scheduledJobs.results.map(job => job.jobName),
73 jobs: Object.keys(jobs),
74 },
75 };
76 });
77 }
78
79 static createJob(req) {
80 const { job_schedule } = req.body || {};

Callers

nothing calls this directly

Calls 2

getJobsMethod · 0.80
findMethod · 0.65

Tested by

no test coverage detected