@kb-labs/rest-api-app 2.15.0 → 2.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +21 -21
package/dist/index.js
CHANGED
|
@@ -2692,8 +2692,9 @@ async function registerJobsRoutes(server, config, cronManager) {
|
|
|
2692
2692
|
throw createError(503, "CRON_UNAVAILABLE", "Cron manager not available");
|
|
2693
2693
|
}
|
|
2694
2694
|
let jobs = cronManager.list();
|
|
2695
|
-
|
|
2696
|
-
|
|
2695
|
+
const query = request.query;
|
|
2696
|
+
if (query.status) {
|
|
2697
|
+
jobs = jobs.filter((job) => job.status === query.status);
|
|
2697
2698
|
}
|
|
2698
2699
|
return reply.send({ jobs });
|
|
2699
2700
|
}
|