MOBILE-3523 database: Fix database invalidate after autosync
parent
e76f0d6cc0
commit
f5d11a0e6d
|
@ -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.
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue