Allow sync after errors with env var

This commit is contained in:
Ben Gotow 2016-06-28 15:37:16 -07:00
parent 14cffcf8a5
commit ca0120a824

View file

@ -168,7 +168,7 @@ class SyncWorker {
syncNow() { syncNow() {
clearTimeout(this._syncTimer); clearTimeout(this._syncTimer);
if (this._account.errored()) { if (!process.env.SYNC_AFTER_ERRORS && this._account.errored()) {
console.log(`SyncWorker: Account ${this._account.emailAddress} is in error state - Skipping sync`) console.log(`SyncWorker: Account ${this._account.emailAddress} is in error state - Skipping sync`)
return return
} }