feat: Implement chapter and lesson management with new services and types, and introduce Minio service.
This commit is contained in:
parent
40b95ad902
commit
6bbbde062a
8 changed files with 382 additions and 6 deletions
|
|
@ -143,7 +143,7 @@ export class CoursesInstructorService {
|
|||
|
||||
const course = await prisma.course.update({
|
||||
where: {
|
||||
id: courseInstructorId.user_id
|
||||
id: courseId
|
||||
},
|
||||
data: courseData
|
||||
});
|
||||
|
|
@ -167,7 +167,7 @@ export class CoursesInstructorService {
|
|||
|
||||
const course = await prisma.course.delete({
|
||||
where: {
|
||||
id: courseInstructorId.user_id
|
||||
id: courseId
|
||||
}
|
||||
});
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue