Skip to content

Commit 3db7130

Browse files
committed
Polish
1 parent a0f80d4 commit 3db7130

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

backend/__mocks__/mockData.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

backend/rest/userRoutes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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";
1414
import nodemailerConfig from "../nodemailer.config";
1515
import AuthService from "../services/implementations/authService";
1616
import CoursePageService from "../services/implementations/coursePageService";

backend/services/interfaces/coursePageService.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)