WIP
This commit is contained in:
parent
5312086622
commit
dbcfa6a7e7
3 changed files with 56 additions and 58 deletions
|
|
@ -155,7 +155,7 @@ function cashOut (req, res) {
|
|||
const tx = req.body
|
||||
tx.cryptoAtoms = new BigNumber(tx.cryptoAtoms)
|
||||
|
||||
return plugins.cashOut(tx)
|
||||
return plugins.cashOut(getDeviceId(req), tx)
|
||||
.then(cryptoAddress => res.json({toAddress: cryptoAddress}))
|
||||
.catch(err => {
|
||||
res.json({
|
||||
|
|
@ -167,7 +167,7 @@ function cashOut (req, res) {
|
|||
}
|
||||
|
||||
function dispenseAck (req, res) {
|
||||
plugins.dispenseAck(req.body)
|
||||
plugins.dispenseAck(getDeviceId(req), req.body)
|
||||
res.json({success: true})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue