Merge pull request #4090 from dpalou/MOBILE-4470

MOBILE-4470 workshop: Fix sync submission finishing without waiting
main
Pau Ferrer Ocaña 2024-06-10 09:25:32 +02:00 committed by GitHub
commit 80aebd4c81
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -311,7 +311,7 @@ export class AddonModWorkshopSyncProvider extends CoreSyncBaseProvider<AddonModW
return;
}
submissionActions.forEach(async (action) => {
await Promise.all(submissionActions.map(async (action) => {
submissionId = action.submissionid > 0 ? action.submissionid : submissionId;
try {
@ -397,7 +397,7 @@ export class AddonModWorkshopSyncProvider extends CoreSyncBaseProvider<AddonModW
siteId,
);
}
});
}));
if (discardError) {
// Submission was discarded, add a warning.