scaler updates
This commit is contained in:
@@ -40,7 +40,7 @@ r.patch("/:status", async (req, res) => {
|
||||
level: "info",
|
||||
module: "utils",
|
||||
subModule: "jobs",
|
||||
message: `${name} was restarted`,
|
||||
message: `${body.name} was restarted`,
|
||||
data: getAllJobs(),
|
||||
status: 200,
|
||||
});
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { Express } from "express";
|
||||
import getActiveJobs from "./cronerActiveJobs.route.js";
|
||||
import jobStatusChange from "./cronerStatusChange.js";
|
||||
import jobStatusChange from "./cronerStatusChange.route.js";
|
||||
export const setupUtilsRoutes = (baseUrl: string, app: Express) => {
|
||||
app.use(`${baseUrl}/api/utils/croner`, getActiveJobs);
|
||||
app.use(`${baseUrl}/api/utils/croner`, jobStatusChange);
|
||||
|
||||
Reference in New Issue
Block a user