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
+1 -1
View File
@@ -30,7 +30,7 @@ export default async function AdminDashboard() {
prisma.courseEnrollment.count({
where: { expiresAt: { gt: now, lte: new Date(now.getTime() + 7 * 24 * 60 * 60 * 1000) } },
}),
prisma.homeworkSubmission.count({ where: { feedbacks: { none: {} } } }),
prisma.homeworkSubmission.count({ where: { status: { in: ["PENDING", "REVIEWING"] } } }),
prisma.homeworkSubmission.count(),
prisma.lessonProgress.count(),
prisma.balanceTransaction.aggregate({ _sum: { amount: true } }),