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 } }