diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2025-05-27 10:32:45 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2025-05-27 10:32:45 +0700 |
| commit | 62d2edfa5ae62cd8faa2d0322ddfd5dfa6ad2d2e (patch) | |
| tree | d6cceab24bd7f7c4dbfc4c0ff3ef3c932e0d9b14 /src-migrate/pages/api | |
| parent | 6499f025995f13fcf32b2b5f79c8ee14585668fc (diff) | |
| parent | fd867a90e22fb2fc2fb16237165796ebe0cabab0 (diff) | |
<hafid> merge repeat order & new-release
Diffstat (limited to 'src-migrate/pages/api')
| -rw-r--r-- | src-migrate/pages/api/product-variant/[id].tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src-migrate/pages/api/product-variant/[id].tsx b/src-migrate/pages/api/product-variant/[id].tsx index 2c46ac89..0f7524d0 100644 --- a/src-migrate/pages/api/product-variant/[id].tsx +++ b/src-migrate/pages/api/product-variant/[id].tsx @@ -6,7 +6,7 @@ const SOLR_HOST = process.env.SOLR_HOST as string export default async function handler(req: NextApiRequest, res: NextApiResponse) { const variantId = req.query.id as string - let price_tier = 'tier1' + let price_tier = 'tier1_v2' let auth = req.cookies.auth ? JSON.parse(req.cookies.auth) : null if (auth?.pricelist) price_tier = auth.pricelist @@ -29,7 +29,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) const map = async (variant: any, price_tier: string) => { const data: any = {} - const price = variant[`price_${price_tier}_v2_f`] || 0 + const price = variant[`price_${price_tier}_f`] || 0 data.id = parseInt(variant.id) data.parent_id = variant.template_id_i |
