fix: include user relation in admin reports query to resolve Unknown User display

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-13 07:29:55 -05:00
parent 19b1f26254
commit 04ebc91e9f

View File

@@ -19,7 +19,7 @@ export async function GET() {
const reports = await prisma.report.findMany({ const reports = await prisma.report.findMany({
where, where,
include: { tasks: true }, include: { tasks: true, user: true },
orderBy: { date: "desc" }, orderBy: { date: "desc" },
}); });