coto: corregir chequeo instock

This commit is contained in:
Cat /dev/Nulo 2024-01-04 17:49:10 -03:00
parent da9f2c8348
commit a322bc36fc

View file

@ -28,7 +28,7 @@ function getPriceFromText({ document }: Window) {
return parseFloat(nStr) * 100; return parseFloat(nStr) * 100;
} }
function getInStock({ document }: Window) { function getInStock({ document }: Window) {
return !document.querySelector("product_not_available"); return !document.querySelector(".product_not_available");
} }
export function getCotoProduct(html: string | Buffer): Precioish { export function getCotoProduct(html: string | Buffer): Precioish {