From 836b294316178e26ef24db71d546aa18f2a035b9 Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Fri, 18 Mar 2016 15:09:00 -0700 Subject: [PATCH] log(sync-state): Send `Account State Delta` to mixpanel --- .../worker-sync/lib/nylas-sync-worker-pool.coffee | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal_packages/worker-sync/lib/nylas-sync-worker-pool.coffee b/internal_packages/worker-sync/lib/nylas-sync-worker-pool.coffee index 18cd7d9734..28b58eef91 100644 --- a/internal_packages/worker-sync/lib/nylas-sync-worker-pool.coffee +++ b/internal_packages/worker-sync/lib/nylas-sync-worker-pool.coffee @@ -150,6 +150,11 @@ class NylasSyncWorkerPool _handleAccountDeltas: (deltas) => for delta in deltas Actions.updateAccount(delta.account_id, {syncState: delta.sync_state}) + Actions.recordUserEvent('Account State Delta', { + accountId: delta.account_id + accountEmail: delta.email_address + syncState: delta.sync_state + }) _handleDeltaDeletion: (delta) => klass = NylasAPI._apiObjectToClassMap[delta.object]