Skip to content

Commit

Permalink
KAZOO-3420: the fix for get_master_account_id reversed the logic for …
Browse files Browse the repository at this point in the history
…select
  • Loading branch information
k-anderson committed Mar 12, 2015
1 parent 8479ade commit 71640ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/whistle_services-1.0.0/src/wh_services.erl
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ commit_transactions(#wh_services{billing_id=BillingId}, Activations) ->
select_bookkeeper(BillingId) ->
ResellerId = get_reseller_id(BillingId),
{'ok', MasterAccountId} = whapps_util:get_master_account_id(),
case ResellerId =:= MasterAccountId of
case ResellerId =/= MasterAccountId of
'true' -> 'wh_bookkeeper_local';
'false' ->
whapps_config:get_atom(?WHS_CONFIG_CAT, <<"master_account_bookkeeper">>, 'wh_bookkeeper_local')
Expand Down

0 comments on commit 71640ef

Please sign in to comment.