mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-08 13:44:53 +08:00
log(sync-state): Send Account State Delta
to mixpanel
This commit is contained in:
parent
ea48721a85
commit
c849212250
1 changed files with 5 additions and 0 deletions
|
@ -150,6 +150,11 @@ class NylasSyncWorkerPool
|
||||||
_handleAccountDeltas: (deltas) =>
|
_handleAccountDeltas: (deltas) =>
|
||||||
for delta in deltas
|
for delta in deltas
|
||||||
Actions.updateAccount(delta.account_id, {syncState: delta.sync_state})
|
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) =>
|
_handleDeltaDeletion: (delta) =>
|
||||||
klass = NylasAPI._apiObjectToClassMap[delta.object]
|
klass = NylasAPI._apiObjectToClassMap[delta.object]
|
||||||
|
|
Loading…
Add table
Reference in a new issue