Skip to content

Commit

Permalink
chore: adjust logs for webhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgnreis authored Jul 25, 2024
1 parent 53a5f20 commit 169e86b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions functions/routes/ecom/webhook.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,11 @@ exports.post = ({ appSdk }, req, res) => {
res.send(ECHO_SKIP)
return
}

console.log('>> Webhook before auth << #', storeId)

let auth, mandaBemId, mandaBemKey, warehouses
appSdk.getAuth(storeId)
.then(_auth => {
auth = _auth
console.log('auth', 'already logged', storeId)
return getAppData({ appSdk, storeId, auth })
})

Expand Down Expand Up @@ -86,7 +83,7 @@ exports.post = ({ appSdk }, req, res) => {
})

.catch(err => {
console.log('didnt workout any point', err)
console.log('didnt workout at any point', err)
if (err.name === SKIP_TRIGGER_NAME) {
// trigger ignored by app configuration
res.send(ECHO_SKIP)
Expand Down

0 comments on commit 169e86b

Please sign in to comment.