diff --git a/backend/src/routes/applications.js b/backend/src/routes/applications.js index 98b3eb2..d2e5239 100644 --- a/backend/src/routes/applications.js +++ b/backend/src/routes/applications.js @@ -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