diff --git a/src/controllers/course/CourseInformationController.ts b/src/controllers/course/CourseInformationController.ts index d8d4b87..880ab6c 100644 --- a/src/controllers/course/CourseInformationController.ts +++ b/src/controllers/course/CourseInformationController.ts @@ -104,6 +104,7 @@ async function getCourseTrainingInformationByUUID(request: Request, response: Re { association: User.associations.training_sessions, through: { + as: 'single_user_through', attributes: ["passed", "log_id"], where: { user_id: user.id,