B:BD[
2.151] → [
2.151:910]
} else {
await postgres.query(
`insert into menu_item (
variant_id,
store_id,
cbd,
thc,
price,
stock,
path
) values (
$1,
$2,
$3,
$4,
$5,
$6,
$7
) on conflict (variant_id, store_id) do update set cbd = excluded.cbd, thc = excluded.thc, price = excluded.price, stock = excluded.stock`,
[
variantID,
storeID,
`[${minCBD.toString()},${maxCBD.toString()}]`,
`[${minTHC.toString()},${maxTHC.toString()}]`,
e[i][j].price,
e[i][j].inventory_quantity,
`/products/${e[i][j].handle}?variant=${e[i][j].objectID}`
]
);
e[i][j].inventory_quantity = 0;