adding inforamtion about when the processor ran the last time

This commit is contained in:
orangecoding
2021-05-13 20:27:42 +02:00
parent 0cd354c34a
commit 1f6e2d3618
6 changed files with 61 additions and 4 deletions

View File

@@ -29,6 +29,15 @@ jobRouter.get('/', async (req, res) => {
res.send();
});
jobRouter.get('/processingTimes', async (req, res) => {
res.body = {
interval: config.interval,
lastRun: config.lastRun || null,
};
res.send();
});
jobRouter.post('/', async (req, res) => {
const { provider, notificationAdapter, name, blacklist = [], jobId, enabled } = req.body;
if (