Skip to content

Commit f5d11a0

Browse files
committed
MOBILE-3523 database: Fix database invalidate after autosync
1 parent e76f0d6 commit f5d11a0

File tree

1 file changed

+1
-1
lines changed
  • src/addon/mod/data/providers

1 file changed

+1
-1
lines changed

src/addon/mod/data/providers/sync.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export class AddonModDataSyncProvider extends CoreSyncBaseProvider {
208208
}).then(() => {
209209
if (result.updated) {
210210
// Data has been sent to server. Now invalidate the WS calls.
211-
return this.dataProvider.invalidateContent(data.cmid, courseId, siteId).catch(() => {
211+
return this.dataProvider.invalidateContent(data.coursemodule, courseId, siteId).catch(() => {
212212
// Ignore errors.
213213
});
214214
}

0 commit comments

Comments
 (0)