[local-sync] Fix compilation of FetchNewMessagesInFolder operation

Summary: This was broken because babel could not compile the `super` keyword

Test Plan: manual

Reviewers: evan, mark, halla

Reviewed By: halla

Differential Revision: https://phab.nylas.com/D3804
This commit is contained in:
Juan Tejada 2017-01-27 13:50:27 -08:00
parent 556f4a6c6f
commit 469cbad22b

View file

@ -23,7 +23,10 @@ class FetchNewMessagesInFolderIMAP extends FetchMessagesInFolderIMAP {
// Without a fetchedmax, can't tell what's new! // Without a fetchedmax, can't tell what's new!
// If we haven't fetched anything on this folder, let's run a normal fetch // If we haven't fetched anything on this folder, let's run a normal fetch
// operation // operation
yield super.runTask(db, imap) // Can't use `super` in this scenario because babel can't compile it under
// these conditions. User regular prototype instead
console.log(`🔚 📂 🆕$ {this._folder.name} has no fetchedmax - running regular fetch operation`)
yield FetchMessagesInFolderIMAP.prototype.runTask.call(this, db, imap)
return return
} }