Skip to content

Commit

Permalink
chore: teste webhook route
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusgnreis committed Jan 22, 2024
1 parent 9941f81 commit 79754c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/routes/ecom/webhook.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const removeFromQueue = (resourceId) => {
exports.post = async ({ appSdk, admin }, req, res) => {
// receiving notification from Store API
const { storeId } = req
console.log('acionando webhook', storeId)
console.log('acionando webhook', storeId, JSON.stringify(req.body))
if (req.get('host') && !baseUri.includes(req.get('host'))) {
console.log('>>> Proxy to function v2')
const axios = require('axios')
Expand Down

0 comments on commit 79754c9

Please sign in to comment.