From ebd2973cf9171d31cd3aed5fc1c52aeaceb6ff13 Mon Sep 17 00:00:00 2001 From: Evan Morikawa Date: Wed, 9 Mar 2016 20:27:31 -0500 Subject: [PATCH] fix(sidebar): use n1_id to verify edgehill server --- .../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 74e18e890..c2561512e 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}) -> - tok = AccountStore.tokenForAccountId(AccountStore.accounts()[0].id) + n1_id = NylasEnv.config.get('updateIdentity') new Promise (resolve, reject) => EdgehillAPI.request - path: "/proxy/clearbit/#{@clearbitAPI()}/find?email=#{email}&api_token=#{tok}", + path: "/proxy/clearbit/#{@clearbitAPI()}/find?email=#{email}&n1_id=#{n1_id}", success: (body) => resolve(@parseResponse(body)) error: reject