mirror of
https://github.com/orangecoding/fredy.git
synced 2026-06-16 12:31:07 +00:00
fixing job state setting when job is disabled
This commit is contained in:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user