From 9cbc284ed53fe0324fe4e44c8bfca9f801fecfa3 Mon Sep 17 00:00:00 2001 From: Evan Morikawa Date: Mon, 28 Nov 2016 16:11:10 -0800 Subject: [PATCH] Fetch folders and labels at the same time --- internal_packages/worker-sync/lib/nylas-sync-worker.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal_packages/worker-sync/lib/nylas-sync-worker.coffee b/internal_packages/worker-sync/lib/nylas-sync-worker.coffee index 6ed77ed93..b6674e4e1 100644 --- a/internal_packages/worker-sync/lib/nylas-sync-worker.coffee +++ b/internal_packages/worker-sync/lib/nylas-sync-worker.coffee @@ -123,7 +123,8 @@ class NylasSyncWorker needed = [ {model: 'threads'}, {model: 'messages', maxFetchCount: 5000} - {model: @_account.categoryCollection(), initialPageSize: 1000} + {model: 'folders', initialPageSize: 1000} + {model: 'labels', initialPageSize: 1000} {model: 'drafts'}, {model: 'contacts'}, {model: 'calendars'},