MOBILE-3320 quiz: Fix quiz sync process
parent
3e98be5a02
commit
1c0f7ad42e
|
@ -188,11 +188,11 @@ export class AddonModQuizSyncProvider extends CoreCourseActivitySyncBaseProvider
|
||||||
/**
|
/**
|
||||||
* Sync all quizzes on a site.
|
* Sync all quizzes on a site.
|
||||||
*
|
*
|
||||||
* @param siteId Site ID to sync.
|
|
||||||
* @param force Wether to force sync not depending on last execution.
|
* @param force Wether to force sync not depending on last execution.
|
||||||
|
* @param siteId Site ID to sync.
|
||||||
* @param Promise resolved if sync is successful, rejected if sync fails.
|
* @param Promise resolved if sync is successful, rejected if sync fails.
|
||||||
*/
|
*/
|
||||||
protected async syncAllQuizzesFunc(siteId: string, force: boolean): Promise<void> {
|
protected async syncAllQuizzesFunc(force: boolean, siteId: string): Promise<void> {
|
||||||
// Get all offline attempts.
|
// Get all offline attempts.
|
||||||
const attempts = await AddonModQuizOffline.getAllAttempts(siteId);
|
const attempts = await AddonModQuizOffline.getAllAttempts(siteId);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue