mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-23 00:19:58 +08:00
fix(plugin-auth): POST returns 200, no response body
This commit is contained in:
parent
d568d66891
commit
1c9da2d586
1 changed files with 2 additions and 2 deletions
|
@ -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) ->
|
||||||
|
|
Loading…
Reference in a new issue