fix: has path idx bug in spendLimitUtils.lua

This commit is contained in:
John Yeo
2026-03-24 13:48:07 +00:00
committed by John Yeo
parent f12f21a9ad
commit 011e08f264

View File

@@ -14,7 +14,7 @@ local function build_ent_data_from_full_customer(params)
end
-- Fast path: single JSON.GET on the sub-object via path index
if not is_nil(pathidx_key) then
if params.has_pathidx then
local result = get_customer_entitlement_via_index({
pathidx_key = pathidx_key,
cache_key = cache_key,
@@ -79,6 +79,7 @@ local function get_available_overage_from_spend_limit(params)
cus_ent_id = cus_ent_id,
cache_key = context.cache_key,
pathidx_key = context.pathidx_key,
has_pathidx = context.has_pathidx,
})
end