Skip to content

Commit

Permalink
KAZOO-3034: partial revert, used_by should be set on the root of the …
Browse files Browse the repository at this point in the history
…number doc
  • Loading branch information
k-anderson committed Jan 29, 2015
1 parent bee9f38 commit f3e5f52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/whistle_number_manager-1.0.0/src/wnm_number.erl
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ maybe_correct_used_by(#number{number=Number
NewUsedBy ->
lager:info("correcting used_by field for number ~s from ~s to ~s"
,[Number, UsedBy, NewUsedBy]),
NewNumberDoc = wh_json:set_value([Number, <<"used_by">>], NewUsedBy, NumberDoc),
NewNumberDoc = wh_json:set_value(<<"used_by">>, NewUsedBy, NumberDoc),
save_number_doc(N#number{used_by=NewUsedBy
,number_doc=NewNumberDoc
})
Expand Down

0 comments on commit f3e5f52

Please sign in to comment.