Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adjustment in the route to call new job name
Browse files Browse the repository at this point in the history
FancMa01 committed Jan 23, 2024
1 parent eeb24af commit eb2da58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/routes/orbit/read.js
Original file line number Diff line number Diff line change
@@ -134,7 +134,7 @@ router.post(
cron: newOrbitMonitoring.cron,
};

jobScheduler.createOrbitMonitoringBreeJob(schedularOptions);
jobScheduler.createOrbitMonitoringJob(schedularOptions);
}

res.status(201).send(newOrbitMonitoring);
@@ -451,7 +451,7 @@ router.put(
cron: newOrbitMonitoring.cron,
};

jobScheduler.createOrbitMonitoringBreeJob(schedularOptions);
jobScheduler.createOrbitMonitoringJob(schedularOptions);
}

// If start monitoring was changed to FALSE
@@ -466,7 +466,7 @@ router.put(
for (let job of allBreeJobs) {
if (job.name === jobName) {
await jobScheduler.removeJobFromScheduler(jobName);
await jobScheduler.createOrbitMonitoringBreeJob({
await jobScheduler.createOrbitMonitoringJob({
orbitMonitoring_id: id,

cron: cron,
@@ -519,7 +519,7 @@ router.put(

// If isActive = false, add it to bre
if (!isActive) {
await jobScheduler.createOrbitMonitoringBreeJob({
await jobScheduler.createOrbitMonitoringJob({
orbitMonitoring_id: id,
cron: cron,
});

0 comments on commit eb2da58

Please sign in to comment.