fix: handle 'Stock (pièce)' header variant in addition to 'Stock (en pièce)'

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-26 09:47:14 +02:00
parent a334987b7c
commit 747f8a47b8
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -74,6 +74,7 @@ export async function POST(req: NextRequest) {
famille: product.famille,
})
send({ type: 'progress', current: i + 1, total, tab: product.tab, title: product.title, step: 'Création produit Shopify…' })
console.log(`[creation] ${product.sku} stock=${product.stock}`)
const shopifyId = await createShopifyProduct({
ref: product.sku,
handle: product.sku.toLowerCase().replace(/[^a-z0-9]+/g, '-'),