From 0dbca0589221efa9a089b58596498574c224c607 Mon Sep 17 00:00:00 2001 From: Daniel Egger Date: Tue, 27 Jun 2023 14:16:21 +0200 Subject: [PATCH] Fix course_session_id --- client/src/services/learningPath.ts | 2 +- client/src/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }