improve config loading; remove debug
This commit is contained in:
parent
5f0b70ca42
commit
614c64646a
15 changed files with 198 additions and 193 deletions
|
|
@ -19,7 +19,6 @@ function post (tx, pi) {
|
|||
const isolationLevel = pgp.txMode.isolationLevel
|
||||
const tmSRD = new TransactionMode({tiLevel: isolationLevel.serializable})
|
||||
|
||||
console.log('DEBUG502: %j', tx)
|
||||
function transaction (t) {
|
||||
const sql = 'select * from cash_in_txs where id=$1'
|
||||
const sql2 = 'select * from bills where cash_in_txs_id=$1'
|
||||
|
|
@ -131,7 +130,6 @@ function insertNewBills (billRows, tx) {
|
|||
|
||||
function upsert (oldTx, tx) {
|
||||
if (!oldTx) {
|
||||
console.log('DEBUG500: %j', tx)
|
||||
return insert(tx)
|
||||
.then(newTx => [oldTx, newTx])
|
||||
}
|
||||
|
|
@ -160,9 +158,7 @@ function update (tx, changes) {
|
|||
}
|
||||
|
||||
function registerTrades (pi, txVector) {
|
||||
console.log('DEBUG400')
|
||||
const newBills = _.last(txVector)
|
||||
console.log('DEBUG401: %j', newBills)
|
||||
_.forEach(bill => pi.buy(bill), newBills)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue