File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ export const testAdmins = [
6161 email : "peter.pan@example.com" ,
6262 status : "Active" as Status ,
6363 role : "Administrator" as Role ,
64+ bookmarks : [ ] ,
6465 } ,
6566] ;
6667
@@ -74,6 +75,7 @@ export const testFacilitators = [
7475 status : "Active" as Status ,
7576 role : "Facilitator" as Role ,
7677 learners : [ "67e60671fb8fbc9c9bbb6d8a" ] ,
78+ bookmarks : [ ] ,
7779 } ,
7880] ;
7981
@@ -93,6 +95,7 @@ export const testLearners = [
9395 // testCourseModules[0].pages.map(page => page.toString())
9496 } ,
9597 } ,
98+ bookmarks : [ ] ,
9699 } ,
97100] ;
98101
@@ -113,6 +116,7 @@ export const testLearnersDTO: LearnerDTO[] = [
113116 ] ) ,
114117 ] ,
115118 ] ) ,
119+ bookmarks : [ ] ,
116120 } ,
117121] ;
118122
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import {
1010 updateUserDtoValidator ,
1111 uploadProfilePictureValidator ,
1212} from "../middlewares/validators/userValidators" ;
13- import UserModel , { Bookmark , LearnerModel } from "../models/user.mgmodel" ;
13+ import UserModel , { Bookmark } from "../models/user.mgmodel" ;
1414import nodemailerConfig from "../nodemailer.config" ;
1515import AuthService from "../services/implementations/authService" ;
1616import CoursePageService from "../services/implementations/coursePageService" ;
Original file line number Diff line number Diff line change @@ -17,7 +17,10 @@ interface ICoursePageService {
1717 * @param coursePageId the id of the page we want to fetch
1818 * @throwsError if course page was not successfully fetched or not found
1919 */
20- getCoursePage ( coursePageId : string , lean ?: boolean ) : Promise < CoursePageDTO > ;
20+ getCoursePage (
21+ coursePageId : string ,
22+ lean ?: boolean ,
23+ ) : Promise < CoursePageDTOBase > ;
2124
2225 /**
2326 * Creates a course page, appended as the last page in the module (for now)
You can’t perform that action at this time.
0 commit comments