Remove references from old stock-tables

This commit is contained in:
Rikard Bartholf
2022-05-23 15:51:35 +02:00
parent 9e2ff31b65
commit e0eff32b0e
+2 -2
View File
@@ -5,7 +5,7 @@ import { ProductsFilterInput } from '../../types/product-types';
const baseQuery = /* sql */ ` const baseQuery = /* sql */ `
SELECT products.productid AS id, SELECT products.productid AS id,
stock.stockid, stock.id AS stockid,
products.path, products.path,
products.visible, products.visible,
products.browsable, products.browsable,
@@ -73,7 +73,7 @@ SELECT products.productid AS id,
WHERE wt.product_id = products.productid WHERE wt.product_id = products.productid
) AS wallpapertypes ) AS wallpapertypes
FROM "product-products" products FROM "product-products" products
LEFT JOIN "product-stockproducts" stock ON stock.productid = products.productid LEFT JOIN stockproducts stock ON stock.product_id = products.productid
`; `;
export function products(input: ProductsFilterInput) { export function products(input: ProductsFilterInput) {