Fix course_session_id
This commit is contained in:
parent
3d4654efbc
commit
0dbca05892
|
|
@ -26,7 +26,7 @@ function getLastCompleted(courseSlug: string, completionData: CourseCompletion[]
|
|||
return orderBy(completionData, ["updated_at"], "desc").find((c: CourseCompletion) => {
|
||||
return (
|
||||
c.completion_status === "SUCCESS" &&
|
||||
c.course_session === courseSession?.id &&
|
||||
c.course_session_id === courseSession?.id &&
|
||||
c.page_type.startsWith("learnpath.LearningContent")
|
||||
);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -176,7 +176,7 @@ export interface CourseCompletion {
|
|||
readonly user: number;
|
||||
readonly page_id: number;
|
||||
readonly page_type: string;
|
||||
readonly course_session: number;
|
||||
readonly course_session_id: number;
|
||||
completion_status: CourseCompletionStatus;
|
||||
additional_json_data: unknown;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue