feat: implement course cloning functionality including chapters, lessons, quizzes, and attachments for instructors.
This commit is contained in:
parent
5442f1beb6
commit
c5aa195b13
4 changed files with 283 additions and 0 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue