Skip to content

Commit

Permalink
chore: set more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgnreis authored Jul 25, 2024
1 parent 3ece6c8 commit d67f6de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion functions/routes/ecom/webhook.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ exports.post = ({ appSdk }, req, res) => {
mandaBemKey = appData.mandabem_token
warehouses = appData.warehouses || []
const sendStatus = parseStatus(appData.send_tag_status)
console.log('>> Webhook <<', sendStatus)
console.log('>> Webhook <<', sendStatus, mandaBemId && mandaBemKey && !appData.disable_auto_tag, order &&
(order.fulfillment_status?.current === sendStatus ||
order.financial_status?.current === sendStatus))
if (mandaBemId && mandaBemKey && !appData.disable_auto_tag) {
const order = trigger.body
if (
Expand Down

0 comments on commit d67f6de

Please sign in to comment.