From 0860f3027c87e2514fcbe4f947554f14542df158 Mon Sep 17 00:00:00 2001 From: Halla Moore Date: Mon, 11 Jul 2016 14:12:03 -0700 Subject: [PATCH] Fix two small errors --- packages/nylas-sync/imap/fetch-messages-in-folder.js | 2 +- packages/nylas-sync/sync-worker.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/nylas-sync/imap/fetch-messages-in-folder.js b/packages/nylas-sync/imap/fetch-messages-in-folder.js index 0bf994f61..038dde66d 100644 --- a/packages/nylas-sync/imap/fetch-messages-in-folder.js +++ b/packages/nylas-sync/imap/fetch-messages-in-folder.js @@ -185,7 +185,7 @@ class FetchMessagesInFolder { this._logger.info({ key, num_messages: uids.length, - }`FetchMessagesInFolder: Fetching parts for messages`) + }, `FetchMessagesInFolder: Fetching parts for messages`) // note: the order of UIDs in the array doesn't matter, Gmail always // returns them in ascending (oldest => newest) order. diff --git a/packages/nylas-sync/sync-worker.js b/packages/nylas-sync/sync-worker.js index 0b7d760d4..7fb2efca1 100644 --- a/packages/nylas-sync/sync-worker.js +++ b/packages/nylas-sync/sync-worker.js @@ -55,6 +55,9 @@ class SyncWorker { this._onAccountUpdated(); break; case MessageTypes.SYNCBACK_REQUESTED: this.syncNow({reason: 'Syncback Action Queued'}); break; + case MessageTypes.ACCOUNT_CREATED: + // No other processing currently required for account creation + break; default: this._logger.error({message: msg}, 'SyncWorker: Invalid message') }