From 4252ba31710073da9bcf4adf9c71774dec43b03b Mon Sep 17 00:00:00 2001 From: Taran Romana Date: Wed, 24 Feb 2021 02:35:03 +0000 Subject: [PATCH] fix allotment json val --- core/kazoo_documents/src/kzd_limits.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/kazoo_documents/src/kzd_limits.erl b/core/kazoo_documents/src/kzd_limits.erl index ef1660f998e..16f047b6708 100644 --- a/core/kazoo_documents/src/kzd_limits.erl +++ b/core/kazoo_documents/src/kzd_limits.erl @@ -454,11 +454,11 @@ allotments(Doc) -> -spec allotments(doc(), Default) -> kz_json:object() | Default. allotments(Doc, Default) -> - kz_json:get_ne_json_value(<<"allotments">>, Doc, Default). + kz_json:get_ne_json_value(<<"pvt_allotments">>, Doc, Default). -spec set_allotments(doc(), kz_json:object()) -> doc(). set_allotments(Doc, Allotments) -> - kz_json:set_value(<<"allotments">>, Allotments, Doc). + kz_json:set_value(<<"pvt_allotments">>, Allotments, Doc). %%------------------------------------------------------------------------------ %% @doc