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", path: "/auth/plugin",
body: {client_id: pluginId}, body: {client_id: pluginId},
json: true json: true
}).then (result) => }).then =>
NylasEnv.config.set(cacheKey, Date.now()) if result.authed NylasEnv.config.set(cacheKey, Date.now())
return Promise.resolve() return Promise.resolve()
_requestPluginAuth: (pluginName, account) -> _requestPluginAuth: (pluginName, account) ->