Skip to content

Commit b71f672

Browse files
committed
fix(webhook-bling): debug body webhook store 1073
1 parent 72d484e commit b71f672

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

functions/routes/bling/callback.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ exports.post = ({ appSdk, admin }, req, res) => {
1717
const blingToken = req.query.token
1818
const storeId = parseInt(req.query.store_id, 10)
1919

20+
if (!req.query || storeId === 1073) {
21+
console.log('>> try webhook 1073 => ', JSON.stringify(req.body))
22+
}
2023
if (storeId > 100 && typeof blingToken === 'string' && blingToken && req.body) {
2124
let { retorno } = req.body
2225
if (!retorno && typeof req.body.data === 'string') {

0 commit comments

Comments
 (0)