From 194bdd7f73858f2f4ddcb76bdafb2b7f24a9ea97 Mon Sep 17 00:00:00 2001 From: Aditya Hegde Date: Tue, 27 Aug 2024 20:01:56 +0530 Subject: [PATCH] Fix deploy success possibly not firing (#5533) --- web-common/src/features/project/ProjectDeployer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web-common/src/features/project/ProjectDeployer.ts b/web-common/src/features/project/ProjectDeployer.ts index 5ae82ff20b8..a6ce7f4193d 100644 --- a/web-common/src/features/project/ProjectDeployer.ts +++ b/web-common/src/features/project/ProjectDeployer.ts @@ -165,7 +165,8 @@ export class ProjectDeployer { org: `${org}${i === 0 ? "" : "-" + i}`, upload: true, }); - void behaviourEvent?.fireDeployEvent( + // wait for the telemetry to finish since the page will be redirected after a deploy success + await behaviourEvent?.fireDeployEvent( BehaviourEventAction.DeploySuccess, ); return resp.frontendUrl;