∅:D[
4.6288] → [
5.23344:23404]
∅:D[
6.2094] → [
5.23344:23404]
∅:D[
3.392] → [
5.23344:23404]
B:BD[
5.23344] → [
5.23344:23404]
∅:D[
2.64] → [
5.23462:23606]
B:BD[
5.23462] → [
5.23462:23606]
B:BD[
5.23606] → [
2.65:212]
∅:D[
7.1027] → [
5.23640:23685]
∅:D[
2.212] → [
5.23640:23685]
∅:D[
8.124] → [
5.23640:23685]
B:BD[
5.23640] → [
5.23640:23685]
B:BD[
5.23685] → [
4.6289:6399]
∅:D[
4.6399] → [
5.23751:23897]
B:BD[
5.23751] → [
5.23751:23897]
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}`
]
);
if(e[i][j].inventory_quantity < 0) {
console.log(`I fucking hate my life ${url}/products/${e[i][j].handle}?variant=${e[i][j].objectID}`);
} 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}`
]
);
}