chore: hide GitHub Issue tasks from open task listings
Some checks failed
Deploy to 110 WOOO Server / deploy (push) Failing after 7s

This commit is contained in:
OG T
2026-06-07 16:15:54 +08:00
parent 793e65fc6b
commit bdf9612b44
2 changed files with 16 additions and 2 deletions

View File

@@ -140,7 +140,14 @@ export async function POST(request: NextRequest, props: { params: Promise<{ tool
const trafficAction = isPublicIp ? "EXTERNAL_LIST_OPEN_TASKS_MCP" : "INTERNAL_LIST_OPEN_TASKS_MCP";
const tasks = await prisma.task.findMany({
where: { status: TaskStatus.OPEN },
where: {
status: TaskStatus.OPEN,
title: {
not: {
startsWith: "GitHub Issue:",
},
},
},
});
const formattedTasks = tasks.map((t) => ({

View File

@@ -146,7 +146,14 @@ export async function GET(request: Request) {
const trafficAction = isPublicIp ? "EXTERNAL_LIST_OPEN_TASKS" : "INTERNAL_LIST_OPEN_TASKS";
const tasks = await prisma.task.findMany({
where: { status: TaskStatus.OPEN },
where: {
status: TaskStatus.OPEN,
title: {
not: {
startsWith: "GitHub Issue:",
},
},
},
orderBy: { created_at: "desc" },
select: {
id: true,