mirror of
https://github.com/jambonz/jambonz-api-server.git
synced 2025-12-18 21:37:43 +00:00
cannot fetch voice_call_session (#525)
This commit is contained in:
@@ -151,9 +151,7 @@ const upgradeToPaidPlan = async(req, res) => {
|
||||
};
|
||||
|
||||
const validateProductQuantities = async(products) => {
|
||||
// validate voice call session minimums
|
||||
const productModel = new Product();
|
||||
const availableProducts = await productModel.retrieveAll();
|
||||
const availableProducts = await Product.retrieveAll();
|
||||
const voiceCallSessionsProductSid =
|
||||
availableProducts.find((p) => p.category === 'voice_call_session')?.product_sid;
|
||||
if (voiceCallSessionsProductSid) {
|
||||
|
||||
Reference in New Issue
Block a user