Skip to content
This repository was archived by the owner on Jul 20, 2026. It is now read-only.

Commit 3ee0510

Browse files
Merge branch 'dev' into feature-admin-middleware
2 parents 01a070f + 092c7cb commit 3ee0510

19 files changed

Lines changed: 167 additions & 1256 deletions

backend/src/repositories/option.repository.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ export class CustomizationOptionRepository {
2626
const query = `
2727
SELECT
2828
${OPTION_FIELDS},
29-
p.name AS "name"
29+
c.name AS "name"
3030
FROM customization_slot_option cso
31-
LEFT JOIN product p ON cso.product_id = p.id
31+
LEFT JOIN customization_slot cs ON cso.customization_slot_id = cs.id
32+
LEFT JOIN category c ON cs.category_id = c.id
3233
WHERE cso.customization_slot_id = $1
3334
ORDER BY cso.display_order ASC
3435
`;
@@ -41,9 +42,10 @@ export class CustomizationOptionRepository {
4142
const query = `
4243
SELECT
4344
${OPTION_FIELDS},
44-
p.name AS "name"
45+
c.name AS "name"
4546
FROM customization_slot_option cso
46-
LEFT JOIN product p ON cso.product_id = p.id
47+
LEFT JOIN customization_slot cs ON cso.customization_slot_id = cs.id
48+
LEFT JOIN category c ON cs.category_id = c.id
4749
WHERE cso.customization_slot_id = $1 AND cso.product_id = $2
4850
`;
4951

frontend/src/app/components/menu-card/menu-card.component.html

Lines changed: 0 additions & 63 deletions
This file was deleted.

frontend/src/app/components/menu-card/menu-card.component.scss

Lines changed: 0 additions & 185 deletions
This file was deleted.

0 commit comments

Comments
 (0)