fix crypto defaults

This commit is contained in:
Josh Harvey 2017-05-26 15:10:14 +01:00
parent b6fce47069
commit 6759bec826
3 changed files with 27 additions and 14 deletions

View file

@ -41,15 +41,11 @@ function atomic (machineTx, pi) {
}
function post (machineTx, pi) {
const pp = require('./pp')
pp('DEBUG98')(machineTx)
return db.tx(atomic(machineTx, pi))
.then(txVector => {
const [, updatedTx] = txVector
return postProcess(txVector, pi)
.then(_.tap(pp('DEBUG99')))
.then(changes => update(updatedTx, changes))
.then(tx => _.set('bills', machineTx.bills, tx))
})