[client-sync] Fix syncWorker arg

Summary: It needs to be wrapped in an object.

Test Plan: manual

Reviewers: evan, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D4367
This commit is contained in:
Halla Moore 2017-04-05 14:32:10 -07:00
parent fc7856b4d0
commit d9a9d66f5f

View file

@ -30,7 +30,7 @@ class FetchNewMessagesInFolderIMAP extends FetchMessagesInFolderIMAP {
// Can't use `super` in this scenario because babel can't compile it under
// these conditions. User regular prototype instead
this._logger.log(`🔚 📂 🆕 ${this._folder.name} has no fetchedmax - running regular fetch operation`)
yield FetchMessagesInFolderIMAP.prototype.runTask.call(this, db, imap, syncWorker)
yield FetchMessagesInFolderIMAP.prototype.runTask.call(this, db, imap, {syncWorker})
return
}