mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-10-04 18:34:57 +08:00
Revert "fix(sidebar): use n1_id to verify edgehill server"
This reverts commit ebd2973cf9
.
This commit is contained in:
parent
3a28bb0529
commit
9018ae6a87
1 changed files with 2 additions and 2 deletions
|
@ -6,10 +6,10 @@ module.exports = class ClearbitDataSource
|
||||||
return "https://person.clearbit.com/v2/combined"
|
return "https://person.clearbit.com/v2/combined"
|
||||||
|
|
||||||
find: ({email}) ->
|
find: ({email}) ->
|
||||||
n1_id = NylasEnv.config.get('updateIdentity')
|
tok = AccountStore.tokenForAccountId(AccountStore.accounts()[0].id)
|
||||||
new Promise (resolve, reject) =>
|
new Promise (resolve, reject) =>
|
||||||
EdgehillAPI.request
|
EdgehillAPI.request
|
||||||
path: "/proxy/clearbit/#{@clearbitAPI()}/find?email=#{email}&n1_id=#{n1_id}",
|
path: "/proxy/clearbit/#{@clearbitAPI()}/find?email=#{email}&api_token=#{tok}",
|
||||||
success: (body) =>
|
success: (body) =>
|
||||||
resolve(@parseResponse(body))
|
resolve(@parseResponse(body))
|
||||||
error: reject
|
error: reject
|
||||||
|
|
Loading…
Add table
Reference in a new issue