diff --git a/src/addon/mod/data/providers/sync.ts b/src/addon/mod/data/providers/sync.ts index dbc3792dd..72995f623 100644 --- a/src/addon/mod/data/providers/sync.ts +++ b/src/addon/mod/data/providers/sync.ts @@ -208,7 +208,7 @@ export class AddonModDataSyncProvider extends CoreSyncBaseProvider { }).then(() => { if (result.updated) { // 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. }); }