Switch homework pending filter from feedbacks-none to status-based (PENDING/REVIEWING)
This commit is contained in:
@@ -9,7 +9,7 @@ export default async function CuratorDashboard() {
|
||||
if (!session) redirect("/login");
|
||||
|
||||
const [pending, total, recentFeedbacks] = await Promise.all([
|
||||
prisma.homeworkSubmission.count({ where: { feedbacks: { none: {} } } }),
|
||||
prisma.homeworkSubmission.count({ where: { status: { in: ["PENDING", "REVIEWING"] } } }),
|
||||
prisma.homeworkSubmission.count(),
|
||||
prisma.homeworkFeedback.count({
|
||||
where: {
|
||||
|
||||
Reference in New Issue
Block a user