From a8effbc201266ac3666acf0328d8a3cd1bc47bbc Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Tue, 21 Jul 2015 11:58:09 -0700 Subject: [PATCH] fix(update-object-task): Task MUST return a status code after rolling back --- src/flux/tasks/update-nylas-objects-task.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/flux/tasks/update-nylas-objects-task.coffee b/src/flux/tasks/update-nylas-objects-task.coffee index eb83eae17..4dc174b86 100644 --- a/src/flux/tasks/update-nylas-objects-task.coffee +++ b/src/flux/tasks/update-nylas-objects-task.coffee @@ -54,7 +54,8 @@ class UpdateNylasObjectsTask extends Task return Promise.resolve(Task.Status.Finished) .catch APIError, (err) => if err.statusCode in NylasAPI.PermanentErrorCodes - return @performLocal(reverting: true) + @performLocal(reverting: true).then => + return Promise.resolve(Task.Status.Finished) else return Promise.resolve(Task.Status.Retry)