From 5e6e5cd8a79595d2afcffe732d37ca65a0f5f7aa Mon Sep 17 00:00:00 2001 From: adriano Date: Tue, 23 Sep 2025 07:23:34 -0300 Subject: [PATCH] feat: added format property filter to create or update pricing --- controllers/apiUsagePricing.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controllers/apiUsagePricing.js b/controllers/apiUsagePricing.js index b62f202..d4dc659 100644 --- a/controllers/apiUsagePricing.js +++ b/controllers/apiUsagePricing.js @@ -28,6 +28,10 @@ const setApiPricing = async (req, res) => { let filter = { provider: normalizedProvider, product: normalizedProduct } + if(format){ + filter = {...filter, format} + } + if (type) { filter = { ...filter, type } }