Skip to content

Commit

Permalink
update ledger summary normlizer (#6128)
Browse files Browse the repository at this point in the history
  • Loading branch information
icehess authored and mark2600 committed Nov 1, 2019
1 parent 3569734 commit b74b6f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications/crossbar/src/modules/cb_ledgers.erl
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ normalize_view_result(LedgerJObj) ->
%%------------------------------------------------------------------------------
-spec normalize_summary_by_account(kz_json:objects(), kz_json:objects()) -> kz_json:objects().
normalize_summary_by_account(JObj, Acc) ->
[AccountId, _PeriodStartTS, _DocId] = kz_json:get_value(<<"key">>, JObj),
[AccountId|_] = kz_json:get_value(<<"key">>, JObj),
Ledger = normalize_ledger_jobj(AccountId, kz_json:get_value(<<"value">>, JObj)),
[kz_json:sum_jobjs([Ledger | Acc])].

Expand Down

0 comments on commit b74b6f5

Please sign in to comment.