feat: implement course cloning functionality including chapters, lessons, quizzes, and attachments for instructors.
All checks were successful
Build and Deploy Backend / Build Backend Docker Image (push) Successful in 24s
Build and Deploy Backend / Deploy E-learning Backend to Dev Server (push) Successful in 3s
Build and Deploy Backend / Notify Deployment Status (push) Successful in 1s

This commit is contained in:
JakkrapartXD 2026-02-13 17:41:01 +07:00
parent 5442f1beb6
commit c5aa195b13
4 changed files with 283 additions and 0 deletions

View file

@ -104,6 +104,20 @@ export class CoursesService {
where: {
id,
status: 'APPROVED' // Only show approved courses to students
},
include: {
chapters: {
select: {
id: true,
title: true,
lessons: {
select: {
id: true,
title: true,
}
}
}
}
}
});