From d349dd02ef302eedeae898eb02ee7228eb5fc712 Mon Sep 17 00:00:00 2001 From: Alexander Blair Date: Wed, 13 Dec 2017 15:14:18 -0800 Subject: [PATCH] Update to fix XMR.to support. --- lib/payment_systems/xmr.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/payment_systems/xmr.js b/lib/payment_systems/xmr.js index 596397c..fe664a9 100644 --- a/lib/payment_systems/xmr.js +++ b/lib/payment_systems/xmr.js @@ -238,7 +238,7 @@ let xmrToQueue = async.queue(function (task, callback) { } else { console.log(JSON.stringify(body)); global.mysql.query("INSERT INTO xmrtoTxn (id, address, paymentID, depositType, withdrawl, withdrawlType, returnAddress, returnAddressType, txnStatus, amountDeposited, amountSent) VALUES (?,?,?,?,?,?,?,?,?,?,?)", - [txnID, body.xmr_receiving_address, body.xmr_required_payment_id, 'XMR', body.btc_dest_address, 'BTC', global.config.pool.address, 'XMR', body.state_str, global.support.decimalToCoin(body.xmr_amount_total), global.support.decimalToCoin(body.btc_amount)]).then(function () { + [txnID, body.xmr_receiving_address, body.xmr_required_payment_id_long, 'XMR', body.btc_dest_address, 'BTC', global.config.pool.address, 'XMR', body.state_str, global.support.decimalToCoin(body.xmr_amount_total), global.support.decimalToCoin(body.btc_amount)]).then(function () { return intCallback(null, body, global.support.decimalToCoin(body.xmr_amount_total)); }).catch(function (error) { return intCallback(error); @@ -257,7 +257,7 @@ let xmrToQueue = async.queue(function (task, callback) { ], priority: global.config.payout.priority, mixin: global.config.payout.mixIn, - payment_id: orderStatus.xmr_required_payment_id + payment_id: orderStatus.xmr_required_payment_id_long }; debug("Payment Details: " + JSON.stringify(paymentDetails)); paymentQueue.push(paymentDetails, function (body) {