This commit is contained in:
Josh Harvey 2016-11-27 03:18:06 +02:00
parent b16d11045c
commit 966440e074
3 changed files with 13 additions and 9 deletions

View file

@ -44,7 +44,7 @@ exports.recordBill = function recordBill (deviceId, rec) {
const values = [
rec.uuid,
deviceId,
rec.currency,
rec.fiatCode,
rec.cryptoCode,
rec.toAddress,
rec.txId,
@ -83,7 +83,7 @@ exports.addOutgoingTx = function addOutgoingTx (deviceId, tx) {
tx.toAddress,
tx.cryptoAtoms.toString(),
tx.cryptoCode,
tx.currencyCode,
tx.fiatCode,
tx.fiat,
tx.txHash,
null,
@ -111,7 +111,7 @@ exports.addInitialIncoming = function addInitialIncoming (deviceId, tx) {
tx.toAddress,
tx.cryptoAtoms.toString(),
tx.cryptoCode,
tx.currencyCode,
tx.fiatCode,
tx.fiat,
tx.txHash,
tx.phone,
@ -170,7 +170,7 @@ exports.addIncomingPhone = function addIncomingPhone (tx, notified) {
function normalizeTx (tx) {
tx.toAddress = tx.to_address
tx.currencyCode = tx.currency_code
tx.fiatCode = tx.currency_code
tx.txHash = tx.tx_hash
tx.cryptoCode = tx.crypto_code
tx.cryptoAtoms = new BigNumber(tx.crypto_atoms)