This commit is contained in:
Jake Kasper
2025-08-26 06:52:04 -05:00
parent 93a565da9c
commit 2e41a42092

View File

@@ -98,7 +98,7 @@ router.get('/plans', async (req, res, next) => {
if (plan.equipment_name) {
// Get the first product for this plan to determine if it's granular
const productResult = await pool.query(
`SELECT app.product_id, app.user_product_id, p.product_type as shared_type, up.product_type as user_type
`SELECT app.product_id, app.user_product_id, p.product_type as shared_type, up.custom_product_type as user_type
FROM application_plan_products app
LEFT JOIN products p ON app.product_id = p.id
LEFT JOIN user_products up ON app.user_product_id = up.id