MOBILE-2873 scorm: Fix scorm sync before prefetch

main
Pau Ferrer Ocaña 2019-05-27 13:26:20 +02:00 committed by Dani Palou
parent 24fb3d999c
commit 7f32b2763a
1 changed files with 3 additions and 1 deletions

View File

@ -443,6 +443,8 @@ export class AddonModScormPrefetchHandler extends CoreCourseActivityPrefetchHand
this.syncProvider = this.injector.get(AddonModScormSyncProvider);
}
return this.syncProvider.syncScorm(module.instance, siteId);
return this.scormProvider.getScorm(courseId, module.id, module.url, false, siteId).then((scorm) => {
return this.syncProvider.syncScorm(scorm, siteId);
});
}
}