From 2e41a420923a691eb22690a32684d5957ffc5927 Mon Sep 17 00:00:00 2001 From: Jake Kasper Date: Tue, 26 Aug 2025 06:52:04 -0500 Subject: [PATCH] daba --- backend/src/routes/applications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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