normalize db records to server records

This commit is contained in:
Josh Harvey 2016-05-08 20:37:52 +03:00
parent c4e557e86d
commit 59e93445ec
4 changed files with 59 additions and 47 deletions

View file

@ -129,7 +129,6 @@ function stateChange (req, res) {
function send (req, res) {
var tx = req.body
tx.cryptoAtoms = new BigNumber(tx.cryptoAtoms)
tx.satoshis = tx.cryptoAtoms
plugins.sendCoins(session(req), tx, function (err, status) {
// TODO: use status.statusCode here after confirming machine compatibility
@ -148,7 +147,6 @@ function cashOut (req, res) {
logger.info({tx: req.body, cmd: 'cashOut'})
var tx = req.body
tx.cryptoAtoms = new BigNumber(tx.cryptoAtoms)
tx.satoshis = tx.cryptoAtoms
plugins.cashOut(session(req), req.body, function (err, bitcoinAddress) {
if (err) logger.error(err)