From bbbe9195233cc4ce9c409682884b0a286fc32d1e Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Mon, 29 Oct 2018 09:38:46 -0300 Subject: [PATCH 1/2] removing unused log --- Root.js | 1 - 1 file changed, 1 deletion(-) diff --git a/Root.js b/Root.js index f73680488..4c0f321dd 100644 --- a/Root.js +++ b/Root.js @@ -325,7 +325,6 @@ exports.newRoot = function newRoot() { botConfig.loopCounter = 0; if (FULL_LOG === true) { console.log(logDisplace + "Root : [INFO] start -> findProcess -> Processing item from executionList -> p = " + p); } - if (FULL_LOG === true) { console.log(logDisplace + "Root : [INFO] start -> findProcess -> listItem.botPath = " + listItem.botPath); } /* File Path Root */ From c75e419e413ebd6a25f25cec6afb2e6c0c7b02e8 Mon Sep 17 00:00:00 2001 From: "mati108@gmail.com" <34651529+matbenitez@users.noreply.github.com> Date: Mon, 29 Oct 2018 09:39:43 -0300 Subject: [PATCH 2/2] Pointing to master app api --- exchange/ExchangeAPI.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/exchange/ExchangeAPI.js b/exchange/ExchangeAPI.js index acb8cb0e5..0d56607fe 100644 --- a/exchange/ExchangeAPI.js +++ b/exchange/ExchangeAPI.js @@ -67,8 +67,7 @@ if (global.LOG_CONTROL[MODULE_NAME].logInfo === true) { logger.write(MODULE_NAME, "[INFO] createKeyVaultAPIClient -> Entering function."); } const keyVaultAPI = graphqlClient({ - //url: 'http://localhost:4002/graphql', TODO Move to properties - url: 'https://keyvault-api.advancedalgos.net/graphql', + url: 'https://app-api.advancedalgos.net/graphql', headers: { Authorization: 'Bearer ' + authToken } @@ -76,13 +75,13 @@ keyVaultAPI.signTransaction = function (transaction, next) { let variables = { - botId: bot.displayName, + botId: bot.codeName, transaction: transaction } keyVaultAPI.query(` mutation($botId: String, $transaction: String!){ - signTransaction(botId: $botId, transaction: $transaction){ + keyVault_SignTransaction(botId: $botId, transaction: $transaction){ key, signature, date @@ -96,8 +95,8 @@ next(undefined, 'Error from graphql: ' + res.errors); } else { let signature = { - Key: res.data.signTransaction.key, - Sign: res.data.signTransaction.signature + Key: res.data.keyVault_SignTransaction.key, + Sign: res.data.keyVault_SignTransaction.signature } next(signature) }