Skip to content

Commit

Permalink
log(sync-state): Send Account State Delta to mixpanel
Browse files Browse the repository at this point in the history
  • Loading branch information
bengotow committed Mar 18, 2016
1 parent 7835b40 commit 836b294
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 836b294

Please sign in to comment.