From 1998e2883f4c2f210b08783f9f14bf7808325d87 Mon Sep 17 00:00:00 2001 From: Tien Nguyen Phuc Date: Sat, 2 May 2020 12:33:19 +0700 Subject: [PATCH] MOBILE-3400 Dashboard: Last accessed do not updated --- src/core/course/providers/course.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/course/providers/course.ts b/src/core/course/providers/course.ts index c6f99929b..09bcca98c 100644 --- a/src/core/course/providers/course.ts +++ b/src/core/course/providers/course.ts @@ -28,6 +28,7 @@ import { CoreCourseOfflineProvider } from './course-offline'; import { CoreSitePluginsProvider } from '@core/siteplugins/providers/siteplugins'; import { CoreCourseFormatDelegate } from './format-delegate'; import { CorePushNotificationsProvider } from '@core/pushnotifications/providers/pushnotifications'; +import { CoreCoursesProvider } from '@core/courses/providers/courses'; /** * Service that provides some features regarding a course. @@ -860,6 +861,9 @@ export class CoreCourseProvider { return site.write('core_course_view_course', params).then((response) => { if (!response.status) { return Promise.reject(null); + } else { + this.eventsProvider.trigger( + CoreCoursesProvider.EVENT_MY_COURSES_UPDATED, {course: courseId}, site.getId()); } }); });