mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 07:16:34 +00:00
feat(submissions): include detailed testcase data in problem submissions query
This commit is contained in:
parent
f53807338a
commit
675c828fe2
@ -17,7 +17,19 @@ export default async function SubmissionsPage({ params }: SubmissionsPageProps)
|
|||||||
const problem = await prisma.problem.findUnique({
|
const problem = await prisma.problem.findUnique({
|
||||||
where: { id },
|
where: { id },
|
||||||
select: {
|
select: {
|
||||||
submissions: true,
|
submissions: {
|
||||||
|
include: {
|
||||||
|
testcaseResults: {
|
||||||
|
include: {
|
||||||
|
testcase: {
|
||||||
|
include: {
|
||||||
|
data: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user