From 7cb9f1351c0f373bf5fee5f80db02dabced97f74 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Fri, 7 Jun 2024 15:43:05 +0200 Subject: [PATCH] MOBILE-4470 workshop: Fix sync submission finishing without waiting --- src/addons/mod/workshop/services/workshop-sync.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/addons/mod/workshop/services/workshop-sync.ts b/src/addons/mod/workshop/services/workshop-sync.ts index 06b46dfa4..ea7495a7e 100644 --- a/src/addons/mod/workshop/services/workshop-sync.ts +++ b/src/addons/mod/workshop/services/workshop-sync.ts @@ -311,7 +311,7 @@ export class AddonModWorkshopSyncProvider extends CoreSyncBaseProvider { + await Promise.all(submissionActions.map(async (action) => { submissionId = action.submissionid > 0 ? action.submissionid : submissionId; try { @@ -397,7 +397,7 @@ export class AddonModWorkshopSyncProvider extends CoreSyncBaseProvider