MOBILE-3320 course: Fix section download status calculation

main
Dani Palou 2021-05-31 12:43:56 +02:00
parent 4c304af5e6
commit 92b3dbe225
1 changed files with 2 additions and 2 deletions

View File

@ -735,7 +735,7 @@ export class CoreCourseModulePrefetchDelegateService extends CoreDelegate<CoreCo
return;
}
result.status = CoreFilepool.determinePackagesStatus(status, modStatus);
result.status = CoreFilepool.determinePackagesStatus(result.status, modStatus);
result[modStatus].push(module);
result.total++;
} catch (error) {
@ -749,7 +749,7 @@ export class CoreCourseModulePrefetchDelegateService extends CoreDelegate<CoreCo
return;
}
result.status = CoreFilepool.determinePackagesStatus(status, cacheStatus);
result.status = CoreFilepool.determinePackagesStatus(result.status, cacheStatus);
result[cacheStatus].push(module);
result.total++;
}