refactor(cb): all callback renamed to cb, and local callbacks to _cb

This commit is contained in:
Damian Mee 2014-09-26 03:49:50 +02:00
parent f15f6d9a0a
commit f7f98d986e
2 changed files with 22 additions and 22 deletions

View file

@ -117,18 +117,18 @@ exports.getTxs = function getTxs(txId, cb) {
exports.getPendingAmount = function getPendingAmount(txId, cb) {
async.parallel({
// NOTE: `async.apply()` would strip context here
txs: function(callback) {
txs: function(_cb) {
client.query(
'SELECT * FROM transactions WHERE id=$1',
[txId],
callback
_cb
);
},
bills: function(callback) {
bills: function(_cb) {
client.query(
'SELECT * FROM bills WHERE transaction_id=$1 ORDER BY created DESC',
[txId],
callback
_cb
);
}
}, function(err, results) {