MOBILE-3523 database: Fix database invalidate after autosync

main
Pau Ferrer Ocaña 2020-10-19 11:19:28 +02:00
parent e76f0d6cc0
commit f5d11a0e6d
1 changed files with 1 additions and 1 deletions

View File

@ -208,7 +208,7 @@ export class AddonModDataSyncProvider extends CoreSyncBaseProvider {
}).then(() => { }).then(() => {
if (result.updated) { if (result.updated) {
// Data has been sent to server. Now invalidate the WS calls. // Data has been sent to server. Now invalidate the WS calls.
return this.dataProvider.invalidateContent(data.cmid, courseId, siteId).catch(() => { return this.dataProvider.invalidateContent(data.coursemodule, courseId, siteId).catch(() => {
// Ignore errors. // Ignore errors.
}); });
} }