Merge pull request #2360 from nguyenphuctien/MOBILE-3400-integration

MOBILE-3400 Dashboard: Last accessed do not updated
main
Dani Palou 2020-05-06 08:12:01 +02:00 committed by GitHub
commit 49709cc544
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -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());
}
});
});