From 209de76920e06b93525e84b1b9b2ee12829261f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Minelli?= <michael@minelli.me> Date: Wed, 21 Feb 2024 21:24:26 +0100 Subject: [PATCH] DatabaseTypes => Bug fix: rectify corrections type (add array) --- ExpressAPI/src/types/DatabaseTypes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExpressAPI/src/types/DatabaseTypes.ts b/ExpressAPI/src/types/DatabaseTypes.ts index ae95e3b..14e9b00 100644 --- a/ExpressAPI/src/types/DatabaseTypes.ts +++ b/ExpressAPI/src/types/DatabaseTypes.ts @@ -35,6 +35,6 @@ export type Exercise = Prisma.ExerciseGetPayload<typeof exerciseBase> & { isCorrection: boolean } export type Assignment = Prisma.AssignmentGetPayload<typeof assignmentBase> & { - corrections: LazyVal<Exercise> + corrections: LazyVal<Array<Exercise>> } export type Result = Prisma.ResultGetPayload<typeof resultBase> \ No newline at end of file -- GitLab