daba
This commit is contained in:
@@ -98,7 +98,7 @@ router.get('/plans', async (req, res, next) => {
|
|||||||
if (plan.equipment_name) {
|
if (plan.equipment_name) {
|
||||||
// Get the first product for this plan to determine if it's granular
|
// Get the first product for this plan to determine if it's granular
|
||||||
const productResult = await pool.query(
|
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
|
FROM application_plan_products app
|
||||||
LEFT JOIN products p ON app.product_id = p.id
|
LEFT JOIN products p ON app.product_id = p.id
|
||||||
LEFT JOIN user_products up ON app.user_product_id = up.id
|
LEFT JOIN user_products up ON app.user_product_id = up.id
|
||||||
|
|||||||
Reference in New Issue
Block a user