diff --git a/client/src/services/learningPath.ts b/client/src/services/learningPath.ts index 6d0a9727..78e7feed 100644 --- a/client/src/services/learningPath.ts +++ b/client/src/services/learningPath.ts @@ -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") ); }); diff --git a/client/src/types.ts b/client/src/types.ts index b76615fc..e354fedf 100644 --- a/client/src/types.ts +++ b/client/src/types.ts @@ -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; }