favorites
This commit is contained in:
@@ -132,6 +132,12 @@ JSON_OBJECT(
|
||||
m.name,
|
||||
'category',
|
||||
cl.name,
|
||||
/* ================= FAVORITE ================= */
|
||||
'is_favorite',
|
||||
EXISTS(
|
||||
SELECT 1 FROM b2b_favorites f
|
||||
WHERE f.user_id = p_id_customer AND f.product_id = p_id_product
|
||||
),
|
||||
/* ================= IMAGE ================= */
|
||||
'cover_image',
|
||||
JSON_OBJECT(
|
||||
|
||||
Reference in New Issue
Block a user