Skip to content

Commit

Permalink
Merge branch 'master' into rs-app-2147
Browse files Browse the repository at this point in the history
  • Loading branch information
Alphajax committed Oct 27, 2023
2 parents 7ee0585 + a4f0ac0 commit c3b9fc3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions server/src/services/course.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,16 @@ export async function getStudentScore(studentId: number) {
};
}

export async function getCourseTask(taskId: number) {
const courseTasks = await getRepository(CourseTask)
.createQueryBuilder('courseTask')
.innerJoinAndSelect('courseTask.task', 'task')
.where('courseTask.id = :id', { id: taskId })
.andWhere('courseTask.disabled = :disabled', { disabled: false })
.getMany();
return courseTasks;
}

export async function getCourseTasksWithOwner(courseId: number) {
const courseTasks = await getRepository(CourseTask)
.createQueryBuilder('courseTask')
Expand Down

0 comments on commit c3b9fc3

Please sign in to comment.