Check integrity task (#364)

This commit is contained in:
DecDuck
2026-03-01 10:49:34 +00:00
committed by GitHub
parent d060533af8
commit b7b88cf20f
8 changed files with 136 additions and 32 deletions
+3 -1
View File
@@ -1,6 +1,7 @@
import aclManager from "~/server/internal/acls";
import prisma from "~/server/internal/db/database";
import taskHandler from "~/server/internal/tasks";
import type { TaskGroup } from "~/server/internal/tasks/group";
export default defineEventHandler(async (h3) => {
const allowed = await aclManager.allowSystemACL(h3, ["task:read"]);
@@ -38,6 +39,7 @@ export default defineEventHandler(async (h3) => {
});
const dailyTasks = await taskHandler.dailyTasks();
const weeklyTasks = await taskHandler.weeklyTasks();
const other: TaskGroup[] = ["import:check-integrity"];
return { runningTasks, historicalTasks, dailyTasks, weeklyTasks };
return { runningTasks, historicalTasks, dailyTasks, weeklyTasks, other };
});