Skip to content

Commit 0b26ad9

Browse files
committed
fix(tiny-erp): Properly handling product parse on Tiny webhook with product overwrite enabled
1 parent fbebed8 commit 0b26ad9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/apps/tiny-erp/src/integration/import-product-from-tiny.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,12 @@ const importProduct = async (
135135
return null;
136136
}
137137
// @ts-ignore
138-
return parseProduct(produto, tipo, method === 'POST').then((parsedProduct: Products) => {
138+
return parseProduct(
139+
produto,
140+
appData,
141+
tipo,
142+
method === 'POST',
143+
).then((parsedProduct) => {
139144
if (!Number.isNaN(quantity)) {
140145
parsedProduct.quantity = quantity >= 0 ? quantity : 0;
141146
}

0 commit comments

Comments
 (0)