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:
@@ -19,7 +19,7 @@ export async function GET() {
|
||||
|
||||
const reports = await prisma.report.findMany({
|
||||
where,
|
||||
include: { tasks: true },
|
||||
include: { tasks: true, user: true },
|
||||
orderBy: { date: "desc" },
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user