fix(delta-streaming): Fix stale cursor key in config file

This commit is contained in:
Juan Tejada 2016-05-11 10:33:53 -07:00
parent 134284ff9c
commit c564b2c0f7

View file

@ -66,7 +66,7 @@ class DeltaStreamingConnection {
onError: (err) => {
if (err.message.indexOf('Invalid cursor') > 0) {
const error = new Error('Delta Connection: Cursor is invalid. Need to blow away local cache.')
NylasEnv.config.removeAtKeyPath("nylas.#{@_account.id}.cursor")
NylasEnv.config.removeAtKeyPath(`nylas.${this.accountId}.cursor`)
DatabaseStore._handleSetupError(error)
}
},