Merge pull request #115 from Photowall/2369-rework-stock-product-handling

Remove references from old stock-tables
This commit is contained in:
Rikard Bartholf
2022-09-22 07:58:59 +02:00
committed by GitHub
3 changed files with 4313 additions and 4367 deletions
+4304 -4364
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -5,7 +5,7 @@ import { ProductsFilterInput } from '../../types/product-types';
const baseQuery = /* sql */ `
SELECT products.productid AS id,
stock.stockid,
stock.id AS stockid,
products.path,
products.visible,
products.browsable,
@@ -73,7 +73,7 @@ SELECT products.productid AS id,
WHERE wt.product_id = products.productid
) AS wallpapertypes
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) {