Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
shekenahglory committed Nov 23, 2016
1 parent e001848 commit bafd3ab
Show file tree
Hide file tree
Showing 2 changed files with 468 additions and 457 deletions.
9 changes: 3 additions & 6 deletions lib/hbase/hbase-thrift/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,16 +365,12 @@ HbaseClient.getAggregateAccountPayments = function(options) {
row.date = smoment(row.date).format()
delete row.rowkey

// keys will be present on a
// single account lookup, in
// which we will add empty
// buckets as needed.
if (keys) {
if (keys.length) {
results[key] = row
}
})

if (keys) {
if (keys.length) {
keys.forEach(function(key) {
resp.push(results[key] || new Bucket(key))
})
Expand Down Expand Up @@ -406,6 +402,7 @@ HbaseClient.getAggregateAccountPayments = function(options) {
table: 'agg_account_payments',
rowkeys: keys
}, function(err, rows) {

if (err) {
reject(err)
return
Expand Down
Loading

0 comments on commit bafd3ab

Please sign in to comment.