From e0eff32b0ed908d4105a0ed02b0634a4c1f7d6bf Mon Sep 17 00:00:00 2001 From: Rikard Bartholf Date: Mon, 23 May 2022 15:51:35 +0200 Subject: [PATCH] Remove references from old stock-tables --- src/datasources/sql/products-sql.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/datasources/sql/products-sql.ts b/src/datasources/sql/products-sql.ts index c383acd..288b9a0 100644 --- a/src/datasources/sql/products-sql.ts +++ b/src/datasources/sql/products-sql.ts @@ -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) {