MOBILE-3320 quiz: Fix quiz sync process

main
Dani Palou 2021-05-13 11:29:33 +02:00
parent 3e98be5a02
commit 1c0f7ad42e
1 changed files with 2 additions and 2 deletions

View File

@ -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<void> {
protected async syncAllQuizzesFunc(force: boolean, siteId: string): Promise<void> {
// Get all offline attempts.
const attempts = await AddonModQuizOffline.getAllAttempts(siteId);