MOBILE-3213 survey: Invalidate survey after sync
parent
eaeff7e2b7
commit
efa962aab3
|
@ -202,9 +202,11 @@ export class AddonModSurveySyncProvider extends CoreCourseActivitySyncBaseProvid
|
||||||
});
|
});
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
if (courseId) {
|
if (courseId) {
|
||||||
|
return this.surveyProvider.invalidateSurveyData(courseId, siteId).then(() => {
|
||||||
// Data has been sent to server, update survey data.
|
// Data has been sent to server, update survey data.
|
||||||
return this.courseProvider.getModuleBasicInfoByInstance(surveyId, 'survey', siteId).then((module) => {
|
return this.courseProvider.getModuleBasicInfoByInstance(surveyId, 'survey', siteId).then((module) => {
|
||||||
return this.prefetchAfterUpdate(module, courseId, undefined, siteId);
|
return this.prefetchAfterUpdate(module, courseId, undefined, siteId);
|
||||||
|
});
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
// Ignore errors.
|
// Ignore errors.
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue