Merge pull request #4090 from dpalou/MOBILE-4470
MOBILE-4470 workshop: Fix sync submission finishing without waitingmain
commit
80aebd4c81
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue