bug fixes
This commit is contained in:
parent
5987f288a7
commit
836e6a8cf0
3 changed files with 7 additions and 3 deletions
|
|
@ -100,7 +100,11 @@ function postTx (req, res, next) {
|
|||
|
||||
return Tx.post(_.set('deviceId', req.deviceId, req.body), pi)
|
||||
.then(tx => {
|
||||
if (tx.errorCode) throw httpError(tx.error, 500)
|
||||
if (tx.errorCode) {
|
||||
logger.error(tx.error)
|
||||
throw httpError(tx.error, 500)
|
||||
}
|
||||
|
||||
return res.json(tx)
|
||||
})
|
||||
.catch(next)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue