mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-20 15:12:09 +08:00
fix(delta-streaming): Fix stale cursor key in config file
This commit is contained in:
parent
134284ff9c
commit
c564b2c0f7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue