From 9018ae6a87e517ae88615899cf8545ecebfbff95 Mon Sep 17 00:00:00 2001 From: Evan Morikawa Date: Wed, 9 Mar 2016 21:11:53 -0500 Subject: [PATCH] Revert "fix(sidebar): use n1_id to verify edgehill server" This reverts commit ebd2973cf9171d31cd3aed5fc1c52aeaceb6ff13. --- .../participant-profile/lib/clearbit-data-source.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal_packages/participant-profile/lib/clearbit-data-source.coffee b/internal_packages/participant-profile/lib/clearbit-data-source.coffee index c2561512e..74e18e890 100644 --- a/internal_packages/participant-profile/lib/clearbit-data-source.coffee +++ b/internal_packages/participant-profile/lib/clearbit-data-source.coffee @@ -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