From 1c9da2d58659bbe088d3e88977c0eb7134e504ba Mon Sep 17 00:00:00 2001 From: Ben Gotow Date: Thu, 10 Mar 2016 17:33:50 -0800 Subject: [PATCH] fix(plugin-auth): POST returns 200, no response body --- src/flux/nylas-api.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flux/nylas-api.coffee b/src/flux/nylas-api.coffee index 4f94d504b..8319200c9 100644 --- a/src/flux/nylas-api.coffee +++ b/src/flux/nylas-api.coffee @@ -440,8 +440,8 @@ class NylasAPI path: "/auth/plugin", body: {client_id: pluginId}, json: true - }).then (result) => - NylasEnv.config.set(cacheKey, Date.now()) if result.authed + }).then => + NylasEnv.config.set(cacheKey, Date.now()) return Promise.resolve() _requestPluginAuth: (pluginName, account) ->