Remove sanitize

This was added here for no specific reason I think, it's just an id, I dont think we need this 1d83809866
This commit is contained in:
Luis Ramos
2021-03-11 21:54:08 +00:00
committed by Matt-Yorkley
parent 29e0786906
commit da6a7da99d

View File

@@ -114,7 +114,7 @@ module Spree
joins("
LEFT OUTER JOIN (SELECT *
FROM inventory_items
WHERE enterprise_id = #{sanitize enterprise.andand.id})
WHERE enterprise_id = #{enterprise.andand.id})
AS o_inventory_items
ON o_inventory_items.variant_id = spree_variants.id")
.where("o_inventory_items.id IS NULL OR o_inventory_items.visible = (?)", true)