[client-app] Fix runtime error in FetchFolderList

Summary: See title

Test Plan: manual

Reviewers: mark, halla

Reviewed By: halla

Differential Revision: https://phab.nylas.com/D4418
This commit is contained in:
Juan Tejada 2017-04-13 10:46:49 -07:00
parent 9c889c7cff
commit d5a2afd0f6

View file

@ -31,7 +31,7 @@ class FetchFolderListIMAP extends SyncTask {
const Klass = this._classForMailboxWithRole(role, this._db);
const existing = await Klass.findAll({where: {role: role}})
if (existing.length > 0) {
this.assignedRolesCache.add(role)
assignedRolesCache.add(role)
return true
}
return false