removed debug

This commit is contained in:
Josh Harvey 2017-03-22 01:41:38 +02:00
parent b7a93b89f5
commit fe1ed536c5
4 changed files with 1 additions and 18 deletions

View file

@ -19,7 +19,6 @@ function post (tx, pi) {
function transaction (t) {
const sql = 'select * from cash_out_txs where id=$1'
console.log('DEBUG988: %j', tx)
return t.oneOrNone(sql, [tx.id])
.then(toObj)
.then(oldTx => {
@ -132,8 +131,6 @@ function insert (tx) {
const dbTx = toDb(tx)
const sql = pgp.helpers.insert(dbTx, null, 'cash_out_txs') + ' returning *'
console.log('DEBUG901: %s', sql)
console.log('DEBUG902: %j', dbTx)
return db.one(sql)
.then(toObj)
}
@ -142,7 +139,6 @@ function update (tx, changes) {
if (_.isEmpty(changes)) return Promise.resolve(tx)
const dbChanges = toDb(tx)
console.log('DEBUG893: %j', dbChanges)
const sql = pgp.helpers.update(dbChanges, null, 'cash_out_txs') +
pgp.as.format(' where id=$1', [tx.id])
@ -154,7 +150,6 @@ function update (tx, changes) {
function preProcess (tx, newTx, pi) {
if (!tx) {
console.log('DEBUG910')
return pi.newAddress(newTx)
.then(_.set('toAddress', _, newTx))
}