normalize db records to server records
This commit is contained in:
parent
c4e557e86d
commit
59e93445ec
4 changed files with 59 additions and 47 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue