Kaynağa Gözat

Merge pull request #18456 from overleaf/dp-fix-main-lint

Fix lint by using recordEventForUserInBackground

GitOrigin-RevId: 3412c9a997ce0921b25408fc584060e528843b88
David 2 yıl önce
ebeveyn
işleme
029cd4abe7

+ 2 - 2
services/web/app/src/Features/User/UserEmailsController.js

@@ -427,7 +427,7 @@ async function confirmSecondaryEmailPage(req, res) {
     return res.redirect(redirectURL)
   }
 
-  AnalyticsManager.recordEventForUser(
+  AnalyticsManager.recordEventForUserInBackground(
     userId,
     'confirm-secondary-email-page-displayed'
   )
@@ -449,7 +449,7 @@ async function addSecondaryEmailPage(req, res) {
     return res.redirect(redirectURL)
   }
 
-  AnalyticsManager.recordEventForUser(
+  AnalyticsManager.recordEventForUserInBackground(
     userId,
     'add-secondary-email-page-displayed'
   )