fix(plugin-auth): POST returns 200, no response body

This commit is contained in:
Ben Gotow 2016-03-10 17:33:50 -08:00
parent f313cc40f6
commit b14a1a14e4

View file

@ -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) ->