From e080ada2b47ee458d5d0886daeb25838b426dda3 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sat, 10 Aug 2019 18:40:15 +0200 Subject: [PATCH] Key name and secret --- Run.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Run.js b/Run.js index aec97a177..536093fb7 100644 --- a/Run.js +++ b/Run.js @@ -77,13 +77,10 @@ function sequenceExecution(currentStep, notFirstSequence) { if (exchangeAccount.keys) { if (exchangeAccount.keys.length > 0) { let key = exchangeAccount.keys[0] - try { - let data = JSON.parse(key.code) - process.env.KEY = data.label - process.env.SECRET = data.secret - } catch (err) { - // No need to do anything if data is wrong for now. - } + + process.env.KEY = key.name + process.env.SECRET = key.code + } } }