fixing job state setting when job is disabled

This commit is contained in:
orangecoding
2026-06-13 13:14:07 +02:00
parent 3249881771
commit 72c2c02e49
4 changed files with 76 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ export default async function jobPlugin(fastify) {
fastify.get('/', async (request) => {
const isUserAdmin = isAdmin(request);
return jobStorage
.getJobs()
.getJobs({ includeDisabled: true })
.filter(
(job) =>
isUserAdmin ||