Revert "fix(sidebar): use n1_id to verify edgehill server"

This reverts commit 2e1bf03700.
This commit is contained in:
Evan Morikawa 2016-03-09 21:11:53 -05:00
parent 614865c439
commit a53f2ade75

View file

@ -6,10 +6,10 @@ module.exports = class ClearbitDataSource
return "https://person.clearbit.com/v2/combined"
find: ({email}) ->
n1_id = NylasEnv.config.get('updateIdentity')
tok = AccountStore.tokenForAccountId(AccountStore.accounts()[0].id)
new Promise (resolve, reject) =>
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) =>
resolve(@parseResponse(body))
error: reject