Switch homework pending filter from feedbacks-none to status-based (PENDING/REVIEWING)

This commit is contained in:
2026-05-27 11:59:25 +05:00
parent d9e3531c49
commit 14b1eacf0d
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -39,8 +39,8 @@ export default async function HomeworkListPage({ searchParams }: Props) {
},
}
: {}),
...(status === "pending" ? { feedbacks: { none: {} } } : {}),
...(status === "reviewed" ? { feedbacks: { some: {} } } : {}),
...(status === "pending" ? { status: { in: ["PENDING", "REVIEWING"] } } : {}),
...(status === "reviewed" ? { status: { in: ["APPROVED", "REJECTED"] } } : {}),
};
const [submissions, total, courses] = await Promise.all([