From 80d79574bbf1a304a33a1a8f0f5165d67bb619bd Mon Sep 17 00:00:00 2001 From: Artem Bulgakov Date: Sat, 20 Jul 2024 00:17:43 +0300 Subject: [PATCH] chore: send progress after each upload --- src/features/search-sync/background.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/features/search-sync/background.ts b/src/features/search-sync/background.ts index c1b0f5f..39a171a 100644 --- a/src/features/search-sync/background.ts +++ b/src/features/search-sync/background.ts @@ -179,6 +179,7 @@ async function syncAllCourses() { await sendFile(module, fileUrl) }).then(() => { state.currentUploads += 1 + sendSyncProgress() console.log(`Uploaded files: ${state.currentUploads} / ${state.totalUploads}`) }), )