From 1c0f7ad42e9287fcd1ea296c7f0049191100f274 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Thu, 13 May 2021 11:29:33 +0200 Subject: [PATCH] MOBILE-3320 quiz: Fix quiz sync process --- src/addons/mod/quiz/services/quiz-sync.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/addons/mod/quiz/services/quiz-sync.ts b/src/addons/mod/quiz/services/quiz-sync.ts index 77ce8beff..a6741fae5 100644 --- a/src/addons/mod/quiz/services/quiz-sync.ts +++ b/src/addons/mod/quiz/services/quiz-sync.ts @@ -188,11 +188,11 @@ export class AddonModQuizSyncProvider extends CoreCourseActivitySyncBaseProvider /** * Sync all quizzes on a site. * - * @param siteId Site ID to sync. * @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. */ - protected async syncAllQuizzesFunc(siteId: string, force: boolean): Promise { + protected async syncAllQuizzesFunc(force: boolean, siteId: string): Promise { // Get all offline attempts. const attempts = await AddonModQuizOffline.getAllAttempts(siteId);