diff --git a/lib/plugins/wallet/galoy/galoy.js b/lib/plugins/wallet/galoy/galoy.js index f9302020..af877034 100644 --- a/lib/plugins/wallet/galoy/galoy.js +++ b/lib/plugins/wallet/galoy/galoy.js @@ -17,15 +17,12 @@ function request (graphqlQuery, token) { 'content-type': 'application/json', 'Authorization': `Bearer ${token}` } - return Promise.resolve(true) - .then(() => { - return axios({ - method: 'post', - url: URI, - headers: headers, - data: graphqlQuery - }) - }) + return axios({ + method: 'post', + url: URI, + headers: headers, + data: graphqlQuery + }) .then(r => { if (r.error) throw r.error return r.data @@ -45,7 +42,6 @@ function getGaloyAccount (token) { 'operationName': 'me', 'query': `query me { me { - createdAt defaultAccount { defaultWalletId wallets { @@ -55,7 +51,6 @@ function getGaloyAccount (token) { transactions { edges { node { - createdAt direction id settlementAmount @@ -91,9 +86,6 @@ function getGaloyAccount (token) { } } id - phone - twoFAEnabled - username } }`, 'variables': {} @@ -269,7 +261,7 @@ function getStatus (account, tx, requested, settings, operatorId) { return 'notSeen' } const externalCryptoCode = coinUtils.getExternalCryptoCode(cryptoCode) - const address = coinUtils.parseUrl(address) + const address = coinUtils.parseUrl(toAddress) return checkCryptoCode(cryptoCode) .then(() => getGaloyAccount(account.apiKey)) .then(galoyAccount => {